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

Commit cde4bef

Browse files
committed
add debug logs
1 parent 8e98643 commit cde4bef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/basic-authorship/src/basic_authorship.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl<Block, B, E, RA, A> ProposerInner<Block, SubstrateClient<B, E, Block, RA>,
205205
let pending_iterator = self.transaction_pool.ready();
206206

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

249-
self.transaction_pool.remove_invalid(&unqueue_invalid);
250+
let removed_invalid_count = self.transaction_pool.remove_invalid(&unqueue_invalid).len();
251+
debug!("Removed invalid transactions: {}", removed_invalid_count);
250252

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

0 commit comments

Comments
 (0)