From 9fa6dfe81cdbabc7e4492a6d5b94cb17badc757c Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 23 Feb 2018 16:51:48 +0100 Subject: [PATCH] core: fix error in atomic assignment --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 97c1475d11..33f6b4d1e2 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -236,7 +236,7 @@ func (bc *BlockChain) loadLastState() error { bc.hc.SetCurrentHeader(currentHeader) // Restore the last known head fast block - bc.currentFastBlock = bc.currentBlock + bc.currentFastBlock.Store(currentBlock) if head := GetHeadFastBlockHash(bc.db); head != (common.Hash{}) { if block := bc.GetBlockByHash(head); block != nil { bc.currentFastBlock.Store(block)