From 413ff1e70d16aa8c7054108ded4acf70a7970d80 Mon Sep 17 00:00:00 2001 From: welkin22 Date: Thu, 31 Oct 2024 19:17:29 +0800 Subject: [PATCH] use currentBlock for init --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {