mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix(net): log transaction count instead of bool in broadcast debug log (#22417)
This commit is contained in:
@@ -1236,7 +1236,7 @@ where
|
||||
msg_builder.push_pooled(pooled_tx);
|
||||
}
|
||||
|
||||
debug!(target: "net::tx", ?peer_id, tx_count = msg_builder.is_empty(), "Broadcasting transaction hashes");
|
||||
debug!(target: "net::tx", ?peer_id, tx_count = msg_builder.len(), "Broadcasting transaction hashes");
|
||||
let msg = msg_builder.build();
|
||||
self.network.send_transactions_hashes(peer_id, msg);
|
||||
}
|
||||
@@ -1924,6 +1924,14 @@ impl PooledTransactionsHashesBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the number of transactions in the builder.
|
||||
fn len(&self) -> usize {
|
||||
match self {
|
||||
Self::Eth66(hashes) => hashes.len(),
|
||||
Self::Eth68(hashes) => hashes.len(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Appends all hashes
|
||||
fn extend<T: SignedTransaction>(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user