mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
fix change address derivation (#1304)
This commit is contained in:
parent
b37a2b7796
commit
ce1e516440
1 changed files with 4 additions and 4 deletions
|
|
@ -400,8 +400,8 @@ class LWallet(Wallet):
|
|||
|
||||
# looks like change_type is required in nested segwit wallets
|
||||
# but not in native segwit
|
||||
if "changeAddress" not in options and "sh(" in self.change_descriptor:
|
||||
options["change_type"] = "p2sh-segwit"
|
||||
if "changeAddress" not in options and self.address_type:
|
||||
options["change_type"] = self.address_type
|
||||
|
||||
r = self.rpc.walletcreatefundedpsbt(
|
||||
extra_inputs, # inputs
|
||||
|
|
@ -438,8 +438,8 @@ class LWallet(Wallet):
|
|||
|
||||
# looks like change_type is required in nested segwit wallets
|
||||
# but not in native segwit
|
||||
if "changeAddress" not in options and "sh(" in self.change_descriptor:
|
||||
options["change_type"] = "p2sh-segwit"
|
||||
if "changeAddress" not in options and self.address_type:
|
||||
options["change_type"] = self.address_type
|
||||
|
||||
if fee_rate > 0.0:
|
||||
if not existing_psbt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue