Skip to content

Commit

Permalink
fix pendingEVMTxEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Dec 2, 2024
1 parent a9e9004 commit 52c08c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fvm/evm/offchain/utils/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func (a *EVMEventsAccumulator) HasBlockEvent(
return evmBlockEvent, a.pendingEVMTxEvents, false
}

pendingEVMTxEvents := a.pendingEVMTxEvents
// reset pending events
a.pendingEVMTxEvents = make([]events.TransactionEventPayload, 0)
// if there is an EVM block event, we return the EVM block and the accumulated tx events
return evmBlockEvent, a.pendingEVMTxEvents, true
return evmBlockEvent, pendingEVMTxEvents, true
}
2 changes: 2 additions & 0 deletions fvm/evm/offchain/utils/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func OffchainReplayBackwardCompatibilityTest(
if err != nil {
return err
}

continue
}

if IsSporkHeight(chainID, height) {
Expand Down

0 comments on commit 52c08c6

Please sign in to comment.