Skip to content

Commit b21f4b9

Browse files
committed
logs
1 parent 20dc2f3 commit b21f4b9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/tasks/submit/flashbots.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,15 @@ impl FlashbotsTask {
116116
.fill(tx.into_request())
117117
.instrument(tracing::debug_span!("fill_tx").or_current())
118118
.await?;
119+
debug!(?sendable, "prepared signed rollup block transaction");
119120

120-
sendable.try_into_envelope()?.try_into_7594().map_err(|e| eyre::eyre!(format!("{e:?}")))
121+
let tx_envelope = sendable
122+
.try_into_envelope()?
123+
.try_into_7594()
124+
.map_err(|e| eyre::eyre!(format!("{e:?}")))?;
125+
debug!(?tx_envelope, "prepared signed rollup block transaction envelope");
126+
127+
Ok(tx_envelope)
121128
}
122129

123130
/// Tracks the outbound transaction hash and increments submission metrics.

src/tasks/submit/prep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use alloy::{
1212
sol_types::SolCall,
1313
};
1414
use init4_bin_base::deps::metrics::counter;
15+
use serde::de;
1516
use signet_sim::BuiltBlock;
1617
use signet_types::{SignRequest, SignResponse};
1718
use signet_zenith::Zenith;
@@ -115,16 +116,15 @@ impl<'a> SubmitPrep<'a> {
115116
async fn new_tx_request(&self) -> eyre::Result<TransactionRequest> {
116117
let nonce =
117118
self.provider.get_transaction_count(self.provider.default_signer_address()).await?;
118-
119119
debug!(nonce, "assigned nonce to rollup block transaction");
120120

121121
let (sidecar, data) = self.build_sidecar_and_data().await?;
122-
123122
let tx = TransactionRequest::default()
124123
.with_blob_sidecar(sidecar)
125124
.with_input(data)
126125
.with_to(self.config.constants.host_zenith())
127126
.with_nonce(nonce);
127+
debug!(?tx, "constructed rollup block transaction request");
128128

129129
Ok(tx)
130130
}

0 commit comments

Comments
 (0)