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
ad51c85e
Commit
ad51c85e
authored
May 20, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash
parent
4b13f93a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
block.go
ethchain/block.go
+4
-1
peer.go
peer.go
+1
-1
No files found.
ethchain/block.go
View file @
ad51c85e
...
...
@@ -99,6 +99,9 @@ func CreateBlock(root interface{},
Time
:
time
.
Now
()
.
Unix
(),
Extra
:
extra
,
UncleSha
:
EmptyShaList
,
GasUsed
:
new
(
big
.
Int
),
MinGasPrice
:
new
(
big
.
Int
),
GasLimit
:
new
(
big
.
Int
),
contractStates
:
make
(
map
[
string
]
*
ethutil
.
Trie
),
}
block
.
SetTransactions
(
txes
)
...
...
@@ -220,7 +223,7 @@ func (block *Block) SetTransactions(txs []*Transaction) {
trie
.
Update
(
strconv
.
Itoa
(
i
),
string
(
tx
.
RlpEncode
()))
}
block
.
TxSha
=
trie
.
Root
.
([]
byte
)
block
.
TxSha
=
[]
byte
(
trie
.
Root
.
(
string
)
)
}
func
(
block
*
Block
)
Value
()
*
ethutil
.
Value
{
...
...
peer.go
View file @
ad51c85e
...
...
@@ -18,7 +18,7 @@ const (
// The size of the output buffer for writing messages
outputBufferSize
=
50
// Current protocol version
ProtocolVersion
=
1
0
ProtocolVersion
=
1
1
)
type
DiscReason
byte
...
...
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