Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoImin committed Aug 13, 2020
1 parent 218aeda commit 9a7e330
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/default_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ pub async fn start<Mapping: 'static + ServiceMapping>(
// Recover signed transactions of current height, and insert them into the
// mempool.
let current_stxs = txs_wal.load_by_height(current_block.header.height + 1);
log::info!(
"Recover {} tx of height {} from wal",
current_stxs.len(),
current_block.header.height + 1
);

for tx in current_stxs.into_iter() {
let _ = mempool.insert(Context::new(), tx).await;
}
Expand Down

0 comments on commit 9a7e330

Please sign in to comment.