]> Untitled Git - bdk-cli/commitdiff
[wallet] Add a flag to fill-in `PSBT_GLOBAL_XPUB`
authorAlekos Filini <alekos.filini@gmail.com>
Mon, 30 Nov 2020 14:13:33 +0000 (15:13 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Tue, 1 Dec 2020 15:43:38 +0000 (16:43 +0100)
src/cli.rs

index 87a5ff682df964bde8ac7516c5cd497ad090b3f9..882f6da72396c637b799a9a768bd441c65fe4479 100644 (file)
@@ -458,6 +458,7 @@ where
 
         if sub_matches.is_present("offline_signer") {
             tx_builder = tx_builder
+                .add_global_xpubs()
                 .force_non_witness_utxo()
                 .include_output_redeem_witness_script();
         }
@@ -515,6 +516,7 @@ where
 
         if sub_matches.is_present("offline_signer") {
             tx_builder = tx_builder
+                .add_global_xpubs()
                 .force_non_witness_utxo()
                 .include_output_redeem_witness_script();
         }