Skip to content

Commit

Permalink
Merge pull request #242 from ralexstokes/fix-relay-log
Browse files Browse the repository at this point in the history
Fix relay log
  • Loading branch information
ralexstokes authored May 4, 2024
2 parents 0d44616 + 78e2820 commit e605aa5
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit e605aa5

Please sign in to comment.