log # kernels so we can see tx aggregation (if any) ()

This commit is contained in:
Antioch Peverell 2018-05-31 11:58:59 -04:00 committed by GitHub
parent 13fdc6ef6d
commit 279871e050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -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.

View file

@ -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<T> {
@ -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)?;