log # kernels so we can see tx aggregation (if any) (#1111)
This commit is contained in:
+1
-2
@@ -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.
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user