File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import _ "net/http/pprof"
47
47
48
48
const (
49
49
ClientIdentifier = "Geth"
50
- Version = "0.9.14 "
50
+ Version = "0.9.15 "
51
51
)
52
52
53
53
var (
Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
89
89
return
90
90
}
91
91
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
+
92
99
// Get the hashes from the peer (synchronously)
93
100
err := pm .downloader .Synchronise (peer .id , peer .recentHash )
94
101
if err != nil && err == downloader .ErrBadPeer {
You can’t perform that action at this time.
0 commit comments