mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
skip process message whenever synchronising
This commit is contained in:
parent
55d994690a
commit
30d7958a6f
1 changed files with 3 additions and 6 deletions
|
|
@ -849,8 +849,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
||||||
pm.lendingpool.AddRemotes(txs)
|
pm.lendingpool.AddRemotes(txs)
|
||||||
}
|
}
|
||||||
case msg.Code == VoteMsg:
|
case msg.Code == VoteMsg:
|
||||||
// VoteMsg arrived, make sure we have a valid and fresh chain to handle them
|
if pm.downloader.Synchronising() {
|
||||||
if atomic.LoadUint32(&pm.acceptTxs) == 0 {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -868,8 +867,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
case msg.Code == TimeoutMsg:
|
case msg.Code == TimeoutMsg:
|
||||||
// TimeoutMsg arrived, make sure we have a valid and fresh chain to handle them
|
if pm.downloader.Synchronising() {
|
||||||
if atomic.LoadUint32(&pm.acceptTxs) == 0 {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -888,8 +886,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
case msg.Code == SyncInfoMsg:
|
case msg.Code == SyncInfoMsg:
|
||||||
// SyncInfoMsg arrived, make sure we have a valid and fresh chain to handle them
|
if pm.downloader.Synchronising() {
|
||||||
if atomic.LoadUint32(&pm.acceptTxs) == 0 {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue