Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix relay log #242

Merged
merged 2 commits into from
May 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions mev-build-rs/src/auctioneer/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ impl<
}

async fn on_payload_attributes(&mut self, attributes: BuilderPayloadBuilderAttributes) {
// TODO: ignore already processed attributes

let slot = convert_timestamp_to_slot(
attributes.timestamp(),
self.genesis_time,
Expand Down Expand Up @@ -335,6 +333,11 @@ impl<

async fn submit_payload(&self, payload: EthBuiltPayload) {
let auction = self.open_auctions.get(&payload.id()).expect("has auction");
let relay_set = auction
.relays
.iter()
.map(|&index| format!("{0}", self.relays[index]))
.collect::<Vec<_>>();
info!(
slot = auction.slot,
block_number = payload.block().number,
Expand All @@ -343,7 +346,7 @@ impl<
txn_count = %payload.block().body.len(),
blob_count = %payload.sidecars().iter().map(|s| s.blobs.len()).sum::<usize>(),
value = %payload.fees(),
relays=?auction.relays,
relays=?relay_set,
"submitting payload"
);
match prepare_submission(
Expand Down
Loading