Skip to content

Commit cc555ed

Browse files
committed
not using flashblock payload
1 parent 67f5974 commit cc555ed

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/server.rs

+14-9
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,21 @@ impl RollupBoostServer {
494494

495495
let builder = self.builder_client.clone();
496496

497-
// Fallback to the get_payload_v3 from the builder if no flashblocks payload is available
498-
let (payload, source) = if let Some(payload) = payload {
499-
info!(message = "using flashblocks payload");
500-
(payload, PayloadSource::Builder)
497+
if let Some(payload) = payload {
498+
info!(message = "flashblocks payload exists, but not using it");
501499
} else {
502-
builder.get_payload_v3(external_payload_id).await.map_err(|e| {
503-
error!(message = "error calling get_payload_v3 from builder", "url" = ?builder.auth_rpc, "error" = %e, "local_payload_id" = %payload_id, "external_payload_id" = %external_payload_id);
504-
e
505-
})?
506-
};
500+
info!(message = "no flashblocks payload");
501+
}
502+
503+
// Fallback to the get_payload_v3 from the builder if no flashblocks payload is available
504+
// let (payload, source) = if let Some(payload) = payload {
505+
// info!(message = "using flashblocks payload");
506+
// (payload, PayloadSource::Builder)
507+
// } else {
508+
let (payload, source) = builder.get_payload_v3(external_payload_id).await.map_err(|e| {
509+
error!(message = "error calling get_payload_v3 from builder", "url" = ?builder.auth_rpc, "error" = %e, "local_payload_id" = %payload_id, "external_payload_id" = %external_payload_id);
510+
e
511+
})?;
507512

508513
let block_hash = ExecutionPayload::from(payload.clone().execution_payload).block_hash();
509514
info!(message = "received payload from builder", "local_payload_id" = %payload_id, "external_payload_id" = %external_payload_id, "block_hash" = %block_hash);

0 commit comments

Comments
 (0)