Skip to content

Commit

Permalink
Merge pull request #185 from blocknative/debug-gaslimit
Browse files Browse the repository at this point in the history
Debug block gas usage
  • Loading branch information
hsouf authored Aug 15, 2023
2 parents a4948a7 + 4e45d38 commit cb28da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relay/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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():
Expand Down

0 comments on commit cb28da8

Please sign in to comment.