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 8e1380b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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
5 changes: 4 additions & 1 deletion client/transaction-pool/graph/src/validated_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,15 @@ impl<B: ChainApi> ValidatedPool<B> {
return vec![]
}

debug!(target: "txpool", "Removing invalid transactions: {:?}", hashes);

// temporarily ban invalid transactions
debug!(target: "txpool", "Banning invalid transactions: {:?}", hashes);
self.rotator.ban(&time::Instant::now(), hashes.iter().cloned());

let invalid = self.pool.write().remove_subtree(hashes);

debug!(target: "txpool", "Removed invalid transactions: {:?}", invalid);

let mut listener = self.listener.write();
for tx in &invalid {
listener.invalid(&tx.hash, true);
Expand Down

0 comments on commit 8e1380b

Please sign in to comment.