From 1d0d38cd488179301dd992bfe4d98ef0614daa2b Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 7 Jul 2021 14:37:56 +1000 Subject: [PATCH] Explain why we clear the `bip32_derivation` map --- swap/src/bitcoin/wallet.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index c5fa735a..18c72329 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -353,6 +353,8 @@ where change_override, ) { change.script_pubkey = change_override.script_pubkey(); + // Might be populated based on the previously set change address, but for the + // overwrite we don't know unless we ask the user for more information. psbt_output.bip32_derivation.clear(); }