diff --git a/core/blockchain.go b/core/blockchain.go index f39ad7189d..1e559ccaf4 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -200,6 +200,9 @@ 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 }