From 611a51b2656f61e212c303b4144ef5dbbbfa843e Mon Sep 17 00:00:00 2001 From: Sean McGary Date: Mon, 25 Nov 2024 12:07:06 -0600 Subject: [PATCH] Ignore bad root on preprod --- internal/config/config.go | 4 ++++ pkg/rpcServer/rewardsHandlers.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 87505b08..56b0381e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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 { diff --git a/pkg/rpcServer/rewardsHandlers.go b/pkg/rpcServer/rewardsHandlers.go index 28a00823..c0f41fde 100644 --- a/pkg/rpcServer/rewardsHandlers.go +++ b/pkg/rpcServer/rewardsHandlers.go @@ -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), )