From 17640739952c414cd9bb78594a0f3621c59de422 Mon Sep 17 00:00:00 2001 From: hsouf Date: Tue, 15 Aug 2023 12:20:35 +0100 Subject: [PATCH 1/2] debug block gas usage --- relay/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/submit.go b/relay/submit.go index 3fdff958..2a8facb5 100644 --- a/relay/submit.go +++ b/relay/submit.go @@ -80,7 +80,7 @@ func (rs *Relay) SubmitBlock(ctx context.Context, m *structs.MetricGroup, uc str m.AppendSince(tVerify, "submitBlock", "verify") root, wRetried, err := verifyWithdrawals(rs.beaconState, sbr) - logger = logger.WithField("withdrawalsRoot", root) + logger = logger.With(log.F{"withdrawalsRoot": root, "registeredGasLimit": gasLimit}) if err != nil { return fmt.Errorf("failed to verify withdrawals: %w", err) } From 4e45d386370f207983def58daae444e66062e769 Mon Sep 17 00:00:00 2001 From: hsouf Date: Tue, 15 Aug 2023 15:39:39 +0100 Subject: [PATCH 2/2] log validation err --- relay/submit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/submit.go b/relay/submit.go index 2a8facb5..20c4ae09 100644 --- a/relay/submit.go +++ b/relay/submit.go @@ -89,6 +89,7 @@ func (rs *Relay) SubmitBlock(ctx context.Context, m *structs.MetricGroup, uc str select { case err := <-valErr: if err != nil { + logger.WithError(err).Debug("block validation failure") return err } case <-ctx.Done():