Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Nov 6, 2024
1 parent 79c77bb commit 53a4e3f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ func (v *VersionedSignedBuilderBidWithProofs) MarshalJSON() ([]byte, error) {
}
}

// this is necessary, because the mev-boost-relay deserialization doesn't expect a "Version" and "Data" wrapper object
// for deserialization. Instead, it tries to decode the object into the "Deneb" version first and if that fails, it tries
// the "Capella" version. This is a workaround to make the deserialization work.
//
// NOTE(bolt): struct embedding of the VersionedSignedBuilderBid is not possible for some reason because it causes the json
// encoding to omit the `proofs` field. Embedding all of the fields directly does the job.
// Custom UnmarshalJSON implementation according to Constraints-API. This is
// needed in order to be spec compliant and without re-implementing the
// underlying consensus types from scratch. Reference:
// https://docs.boltprotocol.xyz/technical-docs/api/builder#get_header_with_proofs
func (v *VersionedSignedBuilderBidWithProofs) UnmarshalJSON(data []byte) error {
var err error

Expand Down

0 comments on commit 53a4e3f

Please sign in to comment.