fix(wallet): settle a spend whose coins another room's transaction took

A guarded wallet's coins have a spender outside the room: a guardian can
take a coin the child's open spend wants, and the child can move one a
guardian's wants. Neither winner is a row in the loser's room, so the loser
sat signed and rebroadcast forever. The watcher now asks the chain, for a
signed spend Electrum has not heard of, which transaction took each coin;
once that one confirms, recordReplaced marks the spend replaced and settles
every other spend of the coin, as recordConfirmed does for the room's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-23 16:12:48 +02:00
1 parent f9e2d45ec4
commit 29328b4c5f
5 files changed
+183 -37

No files matched your search

@@ -694,7 +694,7 @@
<string name="signed_sending_it_to_the_network">Signed, sending it to the network</string>
<string name="sent_waiting_for_a_confirmation">Sent, waiting for a confirmation</string>
<string name="confirmed">Confirmed</string>
<string name="replaced_by_a_later_spend">Replaced by a later spend</string>
<string name="replaced_by_a_later_spend">Replaced by another spend of the same coins</string>
<string name="send_again">Send again</string>
<string name="bump_the_fee">Bump the fee</string>
<string name="sent_again">Sent again</string>