Skip to content

Commit

Permalink
Merge #2844
Browse files Browse the repository at this point in the history
2844: chore: log failed transactions results r=doitian,yangby-cryptape a=keroro520

#2756 (comment)

Co-authored-by: keroro <[email protected]>
  • Loading branch information
bors[bot] and keroro520 authored Jul 22, 2021
2 parents 2812717 + f85715d commit 1d2e0f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tx-pool/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,11 +969,15 @@ impl TxPoolService {
let total = txs.len();
let mut count = 0usize;
for tx in txs {
if self._process_tx(tx, None).await.is_err() {
let tx_hash = tx.hash();
if let Err(err) = self._process_tx(tx, None).await {
error!("failed to process {:#x}, error: {:?}", tx_hash, err);
count += 1;
}
}
info!("{}/{} transactions are failed to process", count, total);
if count != 0 {
info!("{}/{} transactions are failed to process", count, total);
}
}

pub(crate) async fn clear_pool(&mut self, new_snapshot: Arc<Snapshot>) {
Expand Down

0 comments on commit 1d2e0f3

Please sign in to comment.