diff --git a/common/test_utils.go b/common/test_utils.go index d55e73c17..cad236fe9 100644 --- a/common/test_utils.go +++ b/common/test_utils.go @@ -185,7 +185,9 @@ func CreateTestBlockSubmission(t *testing.T, builderPubkey string, value *uint25 ExecutionPayload: &deneb.ExecutionPayload{ //nolint:exhaustruct BaseFeePerGas: uint256.NewInt(0), }, - BlobsBundle: &builderApiDeneb.BlobsBundle{}, //nolint:exhaustruct + BlobsBundle: &builderApiDeneb.BlobsBundle{ + Commitments: make([]deneb.KZGCommitment, 0), + }, //nolint:exhaustruct Signature: phase0.BLSSignature{}, }, }, diff --git a/common/types_spec.go b/common/types_spec.go index cd3018b29..ab8c8e475 100644 --- a/common/types_spec.go +++ b/common/types_spec.go @@ -15,7 +15,6 @@ import ( "github.com/attestantio/go-eth2-client/spec/capella" "github.com/attestantio/go-eth2-client/spec/deneb" "github.com/attestantio/go-eth2-client/spec/phase0" - eth2UtilDeneb "github.com/attestantio/go-eth2-client/util/deneb" "github.com/flashbots/go-boost-utils/bls" "github.com/flashbots/go-boost-utils/ssz" boostTypes "github.com/flashbots/go-boost-utils/types" @@ -133,16 +132,6 @@ func BuilderBlockRequestToSignedBuilderBid(payload *VersionedSubmitBlockRequest, }, }, nil case spec.DataVersionDeneb: - var blobRoots []phase0.Root - for i, blob := range payload.Deneb.BlobsBundle.Blobs { - blobRootHelper := eth2UtilDeneb.BeaconBlockBlob{Blob: blob} - root, err := blobRootHelper.HashTreeRoot() - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("failed to calculate blob root at blob index %d", i)) - } - blobRoots = append(blobRoots, root) - } - builderBid := builderApiDeneb.BuilderBid{ Header: header.Deneb, BlobKZGCommitments: payload.Deneb.BlobsBundle.Commitments, diff --git a/services/api/service.go b/services/api/service.go index 1d220d39d..a75c54d54 100644 --- a/services/api/service.go +++ b/services/api/service.go @@ -1222,7 +1222,6 @@ func (api *RelayAPI) checkProposerSignature(block *common.VersionedSignedBlinded default: return false, errors.New("unsupported consensus data version") } - return true, nil } func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request) {