diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-10 16:43:01 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-04-10 16:43:01 +0800 |
commit | bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4 (patch) | |
tree | 724676c86df67ae523cbfda2600e7ba466b2955d /eth/sync.go | |
parent | f32b72ca5d7c477e5f5d3ab0d5b6548bf3fdc139 (diff) | |
download | go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.gz go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.bz2 go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.lz go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.xz go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.zst go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.zip |
eth: accept transactions when starting CPU mining (#13882)
Diffstat (limited to 'eth/sync.go')
-rw-r--r-- | eth/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/sync.go b/eth/sync.go index 68d3afdb8..b0653acf9 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -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 |