mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-12 20:21:19 +03:00
log # kernels so we can see tx aggregation (if any) (#1111)
This commit is contained in:
parent
13fdc6ef6d
commit
279871e050
2 changed files with 11 additions and 2 deletions
pool/src
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue