Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
2e2860e4
Commit
2e2860e4
authored
Apr 08, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure mist runs ... :-)
parent
6184781b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
types.go
xeth/types.go
+10
-6
No files found.
xeth/types.go
View file @
2e2860e4
...
...
@@ -77,15 +77,19 @@ func NewBlock(block *types.Block) *Block {
}
ptxs
:=
make
([]
*
Transaction
,
len
(
block
.
Transactions
()))
for
i
,
tx
:=
range
block
.
Transactions
()
{
ptxs
[
i
]
=
NewTx
(
tx
)
}
/*
for i, tx := range block.Transactions() {
ptxs[i] = NewTx(tx)
}
*/
txlist
:=
common
.
NewList
(
ptxs
)
puncles
:=
make
([]
*
Block
,
len
(
block
.
Uncles
()))
for
i
,
uncle
:=
range
block
.
Uncles
()
{
puncles
[
i
]
=
NewBlock
(
types
.
NewBlockWithHeader
(
uncle
))
}
/*
for i, uncle := range block.Uncles() {
puncles[i] = NewBlock(types.NewBlockWithHeader(uncle))
}
*/
ulist
:=
common
.
NewList
(
puncles
)
return
&
Block
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment