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
73c4ca3a
Commit
73c4ca3a
authored
10 years ago
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upped protocol version
parent
29611284
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
block_pool.go
block_pool.go
+2
-3
main.go
cmd/ethereum/main.go
+1
-1
main.go
cmd/mist/main.go
+1
-1
peer.go
peer.go
+0
-1
No files found.
block_pool.go
View file @
73c4ca3a
...
...
@@ -88,7 +88,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
if
(
self
.
peer
==
nil
&&
peer
.
td
.
Cmp
(
highestTd
)
>=
0
)
||
(
self
.
peer
!=
nil
&&
peer
.
td
.
Cmp
(
self
.
peer
.
td
)
>
0
)
||
self
.
peer
==
peer
{
if
self
.
peer
!=
peer
{
poollogger
.
Debug
f
(
"Found better suitable peer (%v vs %v)
\n
"
,
self
.
td
,
peer
.
td
)
poollogger
.
Info
f
(
"Found better suitable peer (%v vs %v)
\n
"
,
self
.
td
,
peer
.
td
)
if
self
.
peer
!=
nil
{
self
.
peer
.
doneFetchingHashes
=
true
...
...
@@ -99,8 +99,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
self
.
td
=
peer
.
td
if
!
self
.
HasLatestHash
()
{
peer
.
doneFetchingHashes
=
false
peer
.
doneFetchingHashes
=
fInfo
const
amount
=
256
peerlogger
.
Debugf
(
"Fetching hashes (%d) %x...
\n
"
,
amount
,
peer
.
lastReceivedHash
[
0
:
4
])
peer
.
QueueMessage
(
wire
.
NewMessage
(
wire
.
MsgGetBlockHashesTy
,
[]
interface
{}{
peer
.
lastReceivedHash
,
uint32
(
amount
)}))
...
...
This diff is collapsed.
Click to expand it.
cmd/ethereum/main.go
View file @
73c4ca3a
...
...
@@ -30,7 +30,7 @@ import (
const
(
ClientIdentifier
=
"Ethereum(G)"
Version
=
"0.7.
7
"
Version
=
"0.7.
8
"
)
var
clilogger
=
logger
.
NewLogger
(
"CLI"
)
...
...
This diff is collapsed.
Click to expand it.
cmd/mist/main.go
View file @
73c4ca3a
...
...
@@ -31,7 +31,7 @@ import (
const
(
ClientIdentifier
=
"Mist"
Version
=
"0.7.
7
"
Version
=
"0.7.
8
"
)
var
ethereum
*
eth
.
Ethereum
...
...
This diff is collapsed.
Click to expand it.
peer.go
View file @
73c4ca3a
...
...
@@ -756,7 +756,6 @@ func (p *Peer) handleHandshake(msg *wire.Msg) {
// Check correctness of p2p protocol version
if
p2pVersion
!=
P2PVersion
{
fmt
.
Println
(
p
)
peerlogger
.
Debugf
(
"Invalid P2P version. Require protocol %d, received %d
\n
"
,
P2PVersion
,
p2pVersion
)
p
.
Stop
()
return
...
...
This diff is collapsed.
Click to expand it.
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