Skip to content

Commit

Permalink
Publish release v2.129.57
Browse files Browse the repository at this point in the history
  • Loading branch information
leonbiton1 committed Dec 10, 2024
1 parent 133ba19 commit bd53ee1
Show file tree
Hide file tree
Showing 11 changed files with 865 additions and 859 deletions.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions bxmessage/mev_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,5 +813,8 @@ func (m *MEVBundle) Clone() *MEVBundle {
SentFromCloudAPI: m.SentFromCloudAPI,
AvoidMixedBundles: m.AvoidMixedBundles,
PriorityFeeRefund: m.PriorityFeeRefund,
IncomingRefundRecipient: m.IncomingRefundRecipient,
BlocksCount: m.BlocksCount,
DroppingTxHashes: m.DroppingTxHashes,
}
}
6 changes: 3 additions & 3 deletions jsonrpc/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ type RPCBundleSubmissionPayload struct {
PriorityFeeRefund bool `json:"priority_fee_refund"`
IncomingRefundRecipient string `json:"refund_recipient,omitempty"`
BlocksCount int `json:"blocks_count,omitempty"`
DroppingTxHashes []string `json:"dropping_tx_hashes,omitempty"`
DroppingHashes []string `json:"dropping_hashes,omitempty"`
}

// Validate doing validation for blxr_submit_bundle payload
Expand Down Expand Up @@ -173,8 +173,8 @@ func (p RPCBundleSubmissionPayload) Validate() error {
}
}

if len(p.DroppingTxHashes) > len(p.Transaction) {
return fmt.Errorf("dropping txs have too many hashes, %v", p.DroppingTxHashes)
if len(p.DroppingHashes) > len(p.Transaction) {
return fmt.Errorf("dropping txs have too many hashes, %v", p.DroppingHashes)
}

return nil
Expand Down
1,692 changes: 846 additions & 846 deletions protobuf/gateway.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion protobuf/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ message BlxrSubmitBundleRequest {
bool priority_fee_refund = 11;
string refund_recipient = 12;
int64 blocks_count = 13;
repeated string dropping_tx_hashes = 14;
repeated string dropping_hashes = 14;
}

message BlxrSubmitBundleReply {
Expand Down
2 changes: 1 addition & 1 deletion servers/grpc/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (g *server) BlxrSubmitBundle(ctx context.Context, req *pb.BlxrSubmitBundleR
PriorityFeeRefund: req.PriorityFeeRefund,
IncomingRefundRecipient: req.RefundRecipient,
BlocksCount: int(req.BlocksCount),
DroppingTxHashes: req.DroppingTxHashes,
DroppingHashes: req.DroppingHashes,
}

grpc := connections.NewRPCConn(*accountID, getPeerAddr(ctx), g.params.sdn.NetworkNum(), utils.GRPC)
Expand Down
2 changes: 1 addition & 1 deletion servers/handler/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func mevBundleFromRequest(payload *jsonrpc.RPCBundleSubmissionPayload, networkNu
payload.PriorityFeeRefund,
payload.IncomingRefundRecipient,
payload.BlocksCount,
payload.DroppingTxHashes,
payload.DroppingHashes,
)
if err != nil {
// Validated before, should not happen
Expand Down
17 changes: 10 additions & 7 deletions servers/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,16 @@ func (s *Server) httpRPCHandler(w http.ResponseWriter, r *http.Request) {
}

payload := jsonrpc.RPCBundleSubmissionPayload{
Transaction: bundlePayload[0].Txs,
BlockNumber: bundlePayload[0].BlockNumber,
MinTimestamp: bundlePayload[0].MinTimestamp,
MaxTimestamp: bundlePayload[0].MaxTimestamp,
RevertingHashes: bundlePayload[0].RevertingTxHashes,
UUID: bundlePayload[0].UUID,
AvoidMixedBundles: bundlePayload[0].AvoidMixedBundles,
Transaction: bundlePayload[0].Txs,
BlockNumber: bundlePayload[0].BlockNumber,
MinTimestamp: bundlePayload[0].MinTimestamp,
MaxTimestamp: bundlePayload[0].MaxTimestamp,
RevertingHashes: bundlePayload[0].RevertingTxHashes,
UUID: bundlePayload[0].UUID,
AvoidMixedBundles: bundlePayload[0].AvoidMixedBundles,
IncomingRefundRecipient: bundlePayload[0].RefundRecipient,
BlocksCount: bundlePayload[0].BlocksCount,
DroppingHashes: bundlePayload[0].DroppingTxHashes,
}

s.handleRPCBundleSubmission(w, r, rpcRequest, payload)
Expand Down

0 comments on commit bd53ee1

Please sign in to comment.