Skip to content

Commit 52c08c6

Browse files
committed
fix pendingEVMTxEvents
1 parent a9e9004 commit 52c08c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

fvm/evm/offchain/utils/replay.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ func (a *EVMEventsAccumulator) HasBlockEvent(
9696
return evmBlockEvent, a.pendingEVMTxEvents, false
9797
}
9898

99+
pendingEVMTxEvents := a.pendingEVMTxEvents
100+
// reset pending events
101+
a.pendingEVMTxEvents = make([]events.TransactionEventPayload, 0)
99102
// if there is an EVM block event, we return the EVM block and the accumulated tx events
100-
return evmBlockEvent, a.pendingEVMTxEvents, true
103+
return evmBlockEvent, pendingEVMTxEvents, true
101104
}

fvm/evm/offchain/utils/verify.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func OffchainReplayBackwardCompatibilityTest(
7979
if err != nil {
8080
return err
8181
}
82+
83+
continue
8284
}
8385

8486
if IsSporkHeight(chainID, height) {

0 commit comments

Comments
 (0)