From dad8360781a2f63d2b37c83a2340a732929804f7 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 13 Jan 2025 09:13:49 +0800 Subject: [PATCH] PEVM-fix: try load TxDAG from block if fail from file --- core/blockchain.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 4695b270b..3801f4e13 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -2257,7 +2257,8 @@ func (bc *BlockChain) parseTxDAG(block *types.Block) { if bc.txDAGReader != nil { // load cache txDAG from file first txDAG = bc.txDAGReader.TxDAG(block.NumberU64()) - } else { + } + if txDAG == nil { // load TxDAG from block txDAG, err = types.GetTxDAG(block) if err != nil {