mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-16 04:03:53 +01:00
cancel_tx committed each entry separately, so a failure part way through left some entries cancelled and the rest untouched, and a retry then stopped on the entry that was already cancelled. Collect the entries and their outputs first and cancel them in a single commit, so the partial state cannot arise. Cancelling an already cancelled transaction still reports an error, as db_wallet_tx_rollback expects.