mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 13:23:13 +00:00
Improve logging in workload utilities and expectations
This commit is contained in:
parent
ae6cf1ef0f
commit
72c2d2eba2
@ -122,8 +122,13 @@ impl Expectation for TxInclusionExpectation {
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(broadcast::error::RecvError::Lagged(_)) => {}
|
||||
Err(broadcast::error::RecvError::Closed) => break,
|
||||
Err(broadcast::error::RecvError::Lagged(skipped)) => {
|
||||
tracing::debug!(skipped, "tx inclusion capture lagged");
|
||||
}
|
||||
Err(broadcast::error::RecvError::Closed) => {
|
||||
tracing::debug!("tx inclusion capture feed closed");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
tracing::debug!("tx inclusion capture task exiting");
|
||||
|
||||
@ -16,6 +16,10 @@ pub fn find_channel_op<F>(block: &Block<SignedMantleTx>, matcher: &mut F) -> Opt
|
||||
where
|
||||
F: FnMut(&Op) -> Option<MsgId>,
|
||||
{
|
||||
debug!(
|
||||
txs = block.transactions().len(),
|
||||
"scanning block for channel op"
|
||||
);
|
||||
for tx in block.transactions() {
|
||||
for op in &tx.mantle_tx().ops {
|
||||
if let Some(msg_id) = matcher(op) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user