improve logging when receiving blocks and txs (msg_len) (#1383)

* better logging for msg_len and # kernels

* rustfmt
This commit is contained in:
Antioch Peverell
2018-08-19 18:15:42 +01:00
committed by GitHub
parent 7d677737d7
commit 5abefbff33
5 changed files with 49 additions and 30 deletions
+4 -1
View File
@@ -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.
-8
View File
@@ -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)?;