Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf committed Jan 17, 2020
1 parent 8e98643 commit cde4bef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/basic-authorship/src/basic_authorship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ impl<Block, B, E, RA, A> ProposerInner<Block, SubstrateClient<B, E, Block, RA>,
let pending_iterator = self.transaction_pool.ready();

debug!("Attempting to push transactions from the pool.");
debug!("Pool status: {:?}", self.transaction_pool.status());
for pending_tx in pending_iterator {
if (self.now)() > deadline {
debug!(
Expand Down Expand Up @@ -246,7 +247,8 @@ impl<Block, B, E, RA, A> ProposerInner<Block, SubstrateClient<B, E, Block, RA>,
is_first = false;
}

self.transaction_pool.remove_invalid(&unqueue_invalid);
let removed_invalid_count = self.transaction_pool.remove_invalid(&unqueue_invalid).len();
debug!("Removed invalid transactions: {}", removed_invalid_count);

let (block, storage_changes, proof) = block_builder.build()?.into_inner();

Expand Down

0 comments on commit cde4bef

Please sign in to comment.