Skip to content

Commit

Permalink
use currentBlock for init
Browse files Browse the repository at this point in the history
  • Loading branch information
welkin22 committed Nov 1, 2024
1 parent 52ac556 commit 413ff1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 413ff1e

Please sign in to comment.