Skip to content

Commit ba2236f

Browse files
committed
cmd/geth, eth: bump version & tmp fix for incorrect TD peers
1 parent f2a2b2a commit ba2236f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import _ "net/http/pprof"
4747

4848
const (
4949
ClientIdentifier = "Geth"
50-
Version = "0.9.14"
50+
Version = "0.9.15"
5151
)
5252

5353
var (

eth/sync.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
8989
return
9090
}
9191

92+
// FIXME if we have the hash in our chain and the TD of the peer is
93+
// much higher than ours, something is wrong with us or the peer.
94+
// Check if the hash is on our own chain
95+
if pm.chainman.HasBlock(peer.recentHash) {
96+
return
97+
}
98+
9299
// Get the hashes from the peer (synchronously)
93100
err := pm.downloader.Synchronise(peer.id, peer.recentHash)
94101
if err != nil && err == downloader.ErrBadPeer {

0 commit comments

Comments
 (0)