Skip to content

Commit

Permalink
PEVM-fix: try load TxDAG from block if fail from file (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da authored Jan 13, 2025
1 parent d60b170 commit 16c1fbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16c1fbe

Please sign in to comment.