Skip to content

Commit

Permalink
Ignore bad root on preprod
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Nov 25, 2024
1 parent ee186f9 commit 611a51b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ func (c *Config) CanIgnoreIncorrectRewardsRoot(blockNumber uint64) bool {
if blockNumber < 2046020 {
return true
}
// test root posted that was invalid for 2024-11-23 (cutoff date 2024-11-24)
if blockNumber == 2812052 {
return true
}
case Chain_Holesky:
// roughly 2024-08-01
if blockNumber < 2046020 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpcServer/rewardsHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (rpc *RpcServer) GenerateRewardsRoot(ctx context.Context, req *sidecarV1.Ge
if rewardsCalcEndDate == "" {
return nil, status.Error(codes.NotFound, "no rewards calculated for the given snapshot date")
}
rpc.Logger.Sugar().Infow("Rewards calculated for snapshot date",
rpc.Logger.Sugar().Infow("Merkelizing rewards for snapshot date",
zap.String("cutoffDate", cutoffDate),
zap.String("rewardsCalcEndDate", rewardsCalcEndDate),
)
Expand Down

0 comments on commit 611a51b

Please sign in to comment.