mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 04:47:17 +00:00
Reset peer during download on disc
This commit is contained in:
parent
25d16f358a
commit
7ba9fe4d5d
6
peer.go
6
peer.go
@ -412,6 +412,12 @@ func (p *Peer) HandleInbound() {
|
||||
//}
|
||||
|
||||
case wire.MsgDiscTy:
|
||||
blockPool := p.ethereum.blockPool
|
||||
if blockPool.peer == p {
|
||||
blockPool.peer = nil
|
||||
blockPool.td = ethutil.Big0
|
||||
}
|
||||
|
||||
p.Stop()
|
||||
peerlogger.Infoln("Disconnect peer: ", DiscReason(msg.Data.Get(0).Uint()))
|
||||
case wire.MsgPingTy:
|
||||
|
Loading…
Reference in New Issue
Block a user