diff --git a/core/blockchain.go b/core/blockchain.go index 745f67d8c0a2..e6f7966ea3c0 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -201,6 +201,10 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, chainConfig *par 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 }