diff --git a/core/blockchain.go b/core/blockchain.go index a50f1e3d4..d40a7b601 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -2749,7 +2749,7 @@ func (bc *BlockChain) SetupTxDAGGeneration(output string, readFile bool) { log.Error("read TxDAG err", "err", err) } // startup with latest block - curHeader := bc.CurrentHeader() + curHeader := bc.CurrentBlock() if curHeader != nil && bc.txDAGReader != nil { err := bc.txDAGReader.InitAndStartReadingLock(curHeader.Number.Uint64()) if err != nil {