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

Add some extra traces to basic-authorship #4657

Merged
merged 1 commit into from
Jan 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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