wtxmgr: only remove entry for specified spending transaction #609
In this commit, we address an issue with the wallet store where it'd be
In this commit, we address an issue with the wallet store where it'd be possible for us to keep lingering unconfirmed transaction entries for an output that has been spent by a different, confirmed transaction. This was caused due to us removing all spending transaction entries for a given output when removing conflicts. Since all of the entries would be removed, we weren't able to retrieve the hashes of the remaining spending transactions to remove their records as well. Instead, we propose to only remove the entry for the specified spending transaction.