eth: accept transactions when starting CPU mining (#13882)

This commit is contained in:
Péter Szilágyi
2017-04-10 11:43:01 +03:00
committed by Felix Lange
parent f32b72ca5d
commit bfe5eb7f8c
6 changed files with 18 additions and 10 deletions

View File

@ -188,7 +188,7 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
if err := pm.downloader.Synchronise(peer.id, pHead, pTd, mode); err != nil {
return
}
atomic.StoreUint32(&pm.synced, 1) // Mark initial sync done
atomic.StoreUint32(&pm.acceptTxs, 1) // Mark initial sync done
if head := pm.blockchain.CurrentBlock(); head.NumberU64() > 0 {
// We've completed a sync cycle, notify all peers of new state. This path is
// essential in star-topology networks where a gateway node needs to notify