Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better log fee recipient mismatch #11395

Merged
merged 3 commits into from
Sep 5, 2022
Merged

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Sep 2, 2022

Logs if the returned payload from the engine does not have the fee
recipient set in the validator.

Also warn the user if he's proposing a block with the burner fee
recipient address.

Logs if the returned payload from the engine does not have the fee
recipient set in the validator.

Also warn the user if he's proposing a block with the burner fee
recipient address.
@potuz potuz requested a review from a team as a code owner September 2, 2022 20:28
rauljordan
rauljordan previously approved these changes Sep 2, 2022
@@ -41,11 +42,37 @@ var (
// The payload is computed given the respected time of merge.
func (vs *Server) getExecutionPayload(ctx context.Context, slot types.Slot, vIdx types.ValidatorIndex, headRoot [32]byte) (*enginev1.ExecutionPayload, error) {
proposerID, payloadId, ok := vs.ProposerSlotIndexCache.GetProposerPayloadIDs(slot, headRoot)
feeRecipient := params.BeaconConfig().DefaultFeeRecipient
recipient, err := vs.BeaconDB.FeeRecipientByValidatorID(ctx, vIdx)
switch err == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it a slightly different style?

switch {
case err != nil
case error.As()
default
}

terencechain
terencechain previously approved these changes Sep 3, 2022
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a second look and it looked good to me. Thanks!
Although a test failed

@potuz potuz dismissed stale reviews from terencechain and rauljordan via 0e26451 September 3, 2022 16:24
@prylabs-bulldozer prylabs-bulldozer bot merged commit 50f9d2b into develop Sep 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the check_payload_fee branch September 5, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants