fix: shed: backfill events from correct starting height (#11720)

This commit is contained in:
Aayush Rajasekaran 2024-03-14 12:40:31 -04:00 committed by GitHub
parent 0b2613ec21
commit 4bed223e30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ var backfillEventsCmd = &cli.Command{
}
if cctx.IsSet("from") {
// we need to fetch the tipset after the epoch being specified since we will need to advance currTs
currTs, err = api.ChainGetTipSetByHeight(ctx, abi.ChainEpoch(cctx.Int("from")+1), currTs.Key())
currTs, err = api.ChainGetTipSetAfterHeight(ctx, abi.ChainEpoch(cctx.Int("from")+1), currTs.Key())
if err != nil {
return err
}