Skip to content

Commit

Permalink
fix(executor): stop iterating on finalized holder
Browse files Browse the repository at this point in the history
  • Loading branch information
00nktk committed Nov 13, 2024
1 parent 2220376 commit 4678144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,10 @@ impl TransactionBuilder {
let tx_hash = *tx_data.envelope.tx_hash();
let mut tx_data = tx_data;
let mut iter_info = match iter_info {
Some(iter_info) if iter_info.is_finished() => {
Some(iter_info)
if iter_info.is_finished()
&& self.holder_mgr.is_holder_finalized(holder.pubkey()).await? =>
{
tracing::debug!(%tx_hash, "iterations finished");
return Ok(None);
}
Expand Down

0 comments on commit 4678144

Please sign in to comment.