From 279871e0506363ddc8dfea6396b89c167024dbf7 Mon Sep 17 00:00:00 2001 From: Antioch Peverell <30642645+antiochp@users.noreply.github.com> Date: Thu, 31 May 2018 11:58:59 -0400 Subject: [PATCH] log # kernels so we can see tx aggregation (if any) (#1111) --- pool/src/pool.rs | 3 +-- pool/src/transaction_pool.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pool/src/pool.rs b/pool/src/pool.rs index 3f31d899..5f974f04 100644 --- a/pool/src/pool.rs +++ b/pool/src/pool.rs @@ -125,11 +125,10 @@ where ) -> Result<(), PoolError> { debug!( LOGGER, - "pool [{}]: add_to_pool: {}, {:?}, {}", + "pool [{}]: add_to_pool: {}, {:?}", self.name, entry.tx.hash(), entry.src, - extra_txs.len(), ); // Combine all the txs from the pool with any extra txs provided. diff --git a/pool/src/transaction_pool.rs b/pool/src/transaction_pool.rs index 56846b81..edf212e6 100644 --- a/pool/src/transaction_pool.rs +++ b/pool/src/transaction_pool.rs @@ -20,10 +20,12 @@ use std::sync::Arc; use time; +use core::core::hash::Hashed; use core::core::transaction; use core::core::{Block, CompactBlock, Transaction}; use pool::Pool; use types::*; +use util::LOGGER; /// Transaction pool implementation. pub struct TransactionPool { @@ -95,6 +97,14 @@ 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)?;