Skip to content

Commit

Permalink
chore: set more recent block
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Van Ootegem <[email protected]>
  • Loading branch information
EVODelavega committed Apr 2, 2024
1 parent 9768351 commit fa1ca25
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/datasource/external/ethverifier/verifier_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,16 @@ func (s *Verifier) LoadState(ctx context.Context, payload *types.Payload) ([]typ
s.restorePendingCallEvents(ctx, pl.EthContractCallEvent)
return nil, nil
case *types.PayloadEthOracleLastBlock:
s.restoreLastEthBlock(ctx, pl.EthOracleLastBlock)
lastEthBlock := pl.EthOracleLastBlock
if vgcontext.InProgressUpgradeFrom(ctx, "v0.74.11") {
// use a recent time instead here to skip unneeded blocks
lastEthBlock = &types.EthBlock{
Height: 19531719,
Time: 1712086487,
}
}

s.restoreLastEthBlock(ctx, lastEthBlock)
return nil, nil
case *types.PayloadEthVerifierMisc:
s.restoreMisc(ctx, pl.Misc)
Expand Down

0 comments on commit fa1ca25

Please sign in to comment.