Skip to content

Commit

Permalink
chore(mock-relay): error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Jun 17, 2024
1 parent 7066f0d commit 951427d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mev-boost/server/mock_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func (m *mockRelay) defaultHandleSubmitConstraint(w http.ResponseWriter, req *ht
func (m *mockRelay) MakeGetHeaderWithConstraintsResponse(value uint64, blockHash, parentHash, publicKey string, version spec.DataVersion, constraints []struct {
tx Transaction
hash phase0.Hash32
}) *BidWithInclusionProofs {

},
) *BidWithInclusionProofs {
transactions := new(utilbellatrix.ExecutionPayloadTransactions)

for _, con := range constraints {
Expand All @@ -220,6 +220,7 @@ func (m *mockRelay) MakeGetHeaderWithConstraintsResponse(value uint64, blockHash
inclusionProof, err := CalculateMerkleMultiProofs(rootNode, constraints)
if err != nil {
logrus.WithError(err).Error("failed to calculate inclusion proof")
return nil
}

bidWithProofs.Proofs = inclusionProof
Expand Down

0 comments on commit 951427d

Please sign in to comment.