Skip to content

Commit

Permalink
fixes potential issue with calling buffered mempool's poll_ready() me…
Browse files Browse the repository at this point in the history
…thod without calling it.
  • Loading branch information
arya2 committed Oct 18, 2024
1 parent b11a708 commit a6d963f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,12 @@ where
if !transaction.transaction.transaction.outputs().is_empty() {
tokio::spawn(async move {
tokio::time::sleep(POLL_MEMPOOL_DELAY).await;
mempool.ready().await.expect("mempool poll_ready() method should not return an error");
let _ = mempool
.ready()
.await
.expect("mempool poll_ready() method should not return an error")
.call(mempool::Request::CheckForVerifiedTransactions)
.await;
});
}
}
Expand Down

0 comments on commit a6d963f

Please sign in to comment.