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
1337a8df
Commit
1337a8df
authored
Jan 28, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upped pv
parent
3440a8a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
block_pool.go
eth/block_pool.go
+1
-1
protocol.go
eth/protocol.go
+1
-1
No files found.
eth/block_pool.go
View file @
1337a8df
...
...
@@ -1098,7 +1098,7 @@ func (self *BlockPool) requestBlocks(attempts int, hashes [][]byte) {
poolLogger
.
Debugf
(
"request %v missing blocks from %v/%v peers: chosen %v"
,
len
(
hashes
),
repetitions
,
peerCount
,
indexes
)
for
_
,
peer
:=
range
self
.
peers
{
if
i
==
indexes
[
0
]
{
poolLogger
.
Debugf
(
"request %v missing blocks
from peer %s"
,
len
(
hashes
)
,
peer
.
id
)
poolLogger
.
Debugf
(
"request %v missing blocks
[%x/%x] from peer %s"
,
len
(
hashes
),
hashes
[
0
][
:
4
],
hashes
[
len
(
hashes
)
-
1
][
:
4
]
,
peer
.
id
)
peer
.
requestBlocks
(
hashes
)
indexes
=
indexes
[
1
:
]
if
len
(
indexes
)
==
0
{
...
...
eth/protocol.go
View file @
1337a8df
...
...
@@ -13,7 +13,7 @@ import (
)
const
(
ProtocolVersion
=
5
1
ProtocolVersion
=
5
2
NetworkId
=
0
ProtocolLength
=
uint64
(
8
)
ProtocolMaxMsgSize
=
10
*
1024
*
1024
...
...
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