Skip to content

Commit

Permalink
fix lint and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Jan 4, 2024
1 parent 2bda80e commit 2f16414
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
6 changes: 4 additions & 2 deletions common/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ func CreateTestBlockSubmission(t *testing.T, builderPubkey string, value *uint25
ExecutionPayload: &deneb.ExecutionPayload{ //nolint:exhaustruct
BaseFeePerGas: uint256.NewInt(0),
},
BlobsBundle: &builderApiDeneb.BlobsBundle{}, //nolint:exhaustruct
Signature: phase0.BLSSignature{},
BlobsBundle: &builderApiDeneb.BlobsBundle{ //nolint:exhaustruct
Commitments: make([]deneb.KZGCommitment, 0),
},
Signature: phase0.BLSSignature{},
},
},
}
Expand Down
1 change: 0 additions & 1 deletion common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/attestantio/go-eth2-client/spec/phase0"
ssz "github.com/ferranbt/fastssz"
boostSsz "github.com/flashbots/go-boost-utils/ssz"
boostTypes "github.com/flashbots/go-boost-utils/types"
"github.com/holiman/uint256"
)

Expand Down
11 changes: 0 additions & 11 deletions common/types_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f16414

Please sign in to comment.