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
04c20998
Commit
04c20998
authored
Apr 29, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth: rely on p2p to determine block propagation
parent
01e3d694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
handler.go
eth/handler.go
+1
-1
No files found.
eth/handler.go
View file @
04c20998
...
@@ -346,7 +346,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
...
@@ -346,7 +346,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
if
err
:=
request
.
Block
.
ValidateFields
();
err
!=
nil
{
if
err
:=
request
.
Block
.
ValidateFields
();
err
!=
nil
{
return
errResp
(
ErrDecode
,
"block validation %v: %v"
,
msg
,
err
)
return
errResp
(
ErrDecode
,
"block validation %v: %v"
,
msg
,
err
)
}
}
request
.
Block
.
ReceivedAt
=
time
.
Now
()
request
.
Block
.
ReceivedAt
=
msg
.
ReceivedAt
hash
:=
request
.
Block
.
Hash
()
hash
:=
request
.
Block
.
Hash
()
// Add the block hash as a known hash to the peer. This will later be used to determine
// Add the block hash as a known hash to the peer. This will later be used to determine
...
...
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