zcash_client_sqlite: Do not overwrite address on update in `put_sent_output`

This commit is contained in:
Kris Nuttycombe 2024-08-16 13:07:12 -06:00
parent 7a00ff0c2a
commit 3089e3b29d
1 changed files with 1 additions and 1 deletions

View File

@ -2613,7 +2613,7 @@ pub(crate) fn put_sent_output<P: consensus::Parameters>(
:to_address, :to_account_id, :value, :memo)
ON CONFLICT (tx, output_pool, output_index) DO UPDATE
SET from_account_id = :from_account_id,
to_address = :to_address,
to_address = IFNULL(to_address, :to_address),
to_account_id = IFNULL(to_account_id, :to_account_id),
value = :value,
memo = IFNULL(:memo, memo)",