Skip to content

Commit

Permalink
Merge pull request #1483 from dusk-network/delete_discarded_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia authored Feb 29, 2024
2 parents 90b5373 + 6553bf6 commit 6c863ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/src/chain/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ impl<DB: database::DB, VM: vm::VMExecution> Operations for Executor<DB, VM> {
error!("{err}");
Error::Failed
})?;
let _ = db.update(|m| {
for t in &discarded_txs {
let _ = m.delete_tx(t.hash());
}
Ok(())
});

Ok(Output {
txs: executed_txs,
Expand Down

0 comments on commit 6c863ea

Please sign in to comment.