diff --git a/core/blockchain.go b/core/blockchain.go index 255e25e951..2aa3004ed7 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -240,6 +240,9 @@ func NewBlockChain( if bc.genesisBlock == nil { return nil, ErrNoGenesis } + var nilBlock *types.Block + bc.currentBlock.Store(nilBlock) + bc.currentFastBlock.Store(nilBlock) if err := bc.loadLastState(); err != nil { return nil, err }