improve logging when receiving blocks and txs (msg_len) (#1383)
* better logging for msg_len and # kernels * rustfmt
This commit is contained in:
+4
-1
@@ -129,10 +129,13 @@ where
|
||||
) -> Result<(), PoolError> {
|
||||
debug!(
|
||||
LOGGER,
|
||||
"pool [{}]: add_to_pool: {}, {:?}",
|
||||
"pool [{}]: add_to_pool: {}, {:?}, inputs: {}, outputs: {}, kernels: {}",
|
||||
self.name,
|
||||
entry.tx.hash(),
|
||||
entry.src,
|
||||
entry.tx.inputs().len(),
|
||||
entry.tx.outputs().len(),
|
||||
entry.tx.kernels().len(),
|
||||
);
|
||||
|
||||
// Combine all the txs from the pool with any extra txs provided.
|
||||
|
||||
@@ -97,14 +97,6 @@ where
|
||||
tx: Transaction,
|
||||
stem: bool,
|
||||
) -> Result<(), PoolError> {
|
||||
debug!(
|
||||
LOGGER,
|
||||
"pool: add_to_pool: {:?}, kernels - {}, stem? {}",
|
||||
tx.hash(),
|
||||
tx.kernels().len(),
|
||||
stem,
|
||||
);
|
||||
|
||||
// Do we have the capacity to accept this transaction?
|
||||
self.is_acceptable(&tx)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user