Skip to content

Commit

Permalink
Merge pull request #205 from attestantio/warn-altered-graffiti
Browse files Browse the repository at this point in the history
Warn on incorrect graffiti rather than error.
  • Loading branch information
mcdee committed May 6, 2024
2 parents 01a8963 + a2467b5 commit b63e2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/beaconblockproposer/standard/propose.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ func (*Service) confirmProposalData(_ context.Context,
return errors.Wrap(err, "failed to obtain proposal graffiti")
}
if !bytes.Equal(proposalGraffiti[:], graffiti[:]) {
return errors.New("proposal data contains incorrect graffiti")
requestedGraffiti := string(bytes.Trim(graffiti[:], "\x00"))
receivedGraffiti := string(bytes.Trim(proposalGraffiti[:], "\x00"))
log.Warn().Str("requested_graffiti", requestedGraffiti).Str("received_graffiti", receivedGraffiti).Msg("Block graffiti not as requested")
}

return nil
Expand Down

0 comments on commit b63e2b3

Please sign in to comment.