Skip to content

Commit

Permalink
no need to remove_redeemers_of for the initial removed tx since thi…
Browse files Browse the repository at this point in the history
…s happens as part of:

`remove_from_transaction_pool_and_update_orphans` -> `orphan_pool.update_orphans_after_transaction_removed` -> `orphan_pool.remove_redeemers_of`
  • Loading branch information
michaelsutton committed Oct 5, 2023
1 parent 4faf2fa commit 7be8b61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mining/src/mempool/remove_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ impl Mempool {
})?;
removed_transactions.extend(removed_orphans);

if remove_redeemers {
removed_transactions.extend(self.orphan_pool.remove_redeemers_of(transaction_id)?.iter().map(|x| x.id()));
}

match reason {
TxRemovalReason::Muted => {}
TxRemovalReason::DoubleSpend => match removed_transactions.len() {
Expand Down

0 comments on commit 7be8b61

Please sign in to comment.