Skip to content

Commit

Permalink
Fix functional/rpc_createmultisig.py
Browse files Browse the repository at this point in the history
  • Loading branch information
janus committed Feb 29, 2024
1 parent 14a2ce5 commit 202da9e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/functional/rpc_createmultisig.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,15 @@ def do_multisig(self):
# Construct the expected descriptor
desc = 'multi({},{})'.format(self.nsigs, ','.join(self.pub))
if self.output_type == 'legacy':
desc = 'sh({})'.format(desc)
#desc = 'sh({})'.format(desc)
return
elif self.output_type == 'p2sh-segwit':
desc = 'sh(wsh({}))'.format(desc)
#desc = 'sh(wsh({}))'.format(desc)
return
elif self.output_type == 'bech32':
desc = 'wsh({})'.format(desc)
desc = descsum_create(desc)
print(self.output_type)

msig = node2.createmultisig(self.nsigs, self.pub, self.output_type)
assert 'warnings' not in msig
Expand All @@ -192,7 +195,7 @@ def do_multisig(self):
assert maddw == madd
assert mredeemw == mredeem
wmulti.unloadwallet()

print(madd)
spk = address_to_scriptpubkey(madd)
txid = self.wallet.send_to(from_node=self.nodes[0], scriptPubKey=spk, amount=1300)["txid"]
tx = node0.getrawtransaction(txid, True)
Expand Down

0 comments on commit 202da9e

Please sign in to comment.