Skip to content

Commit

Permalink
Merge pull request #214 from welkin22/feature/TxDAG-PEVM-dagbackfix-2
Browse files Browse the repository at this point in the history
pevm: fix the blockNumber used by txDAGReader during initialization
  • Loading branch information
welkin22 authored Nov 1, 2024
2 parents 52ac556 + 413ff1e commit af1fae5
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 af1fae5

Please sign in to comment.