|
46 | 46 |
|
47 | 47 | class SignRawTransactionWithKeyTest(BitcoinTestFramework):
|
48 | 48 | def set_test_params(self):
|
49 |
| - self.num_nodes = 2 |
| 49 | + self.num_nodes = 1 |
50 | 50 |
|
51 | 51 | def send_to_address(self, addr, amount):
|
52 | 52 | script_pub_key = address_to_scriptpubkey(addr)
|
@@ -76,12 +76,12 @@ def witness_script_test(self):
|
76 | 76 | self.log.info("Test signing transaction to P2SH-P2WSH addresses without wallet")
|
77 | 77 | # Create a new P2SH-P2WSH 1-of-1 multisig address:
|
78 | 78 | embedded_privkey, embedded_pubkey = generate_keypair(wif=True)
|
79 |
| - p2sh_p2wsh_address = self.nodes[1].createmultisig(1, [embedded_pubkey.hex()], "p2sh-segwit") |
| 79 | + p2sh_p2wsh_address = self.nodes[0].createmultisig(1, [embedded_pubkey.hex()], "p2sh-segwit") |
80 | 80 | # send transaction to P2SH-P2WSH 1-of-1 multisig address
|
81 | 81 | self.send_to_address(p2sh_p2wsh_address["address"], 49.999)
|
82 | 82 | self.generate(self.nodes[0], 1)
|
83 | 83 | # Get the UTXO info from scantxoutset
|
84 |
| - unspent_output = self.nodes[1].scantxoutset('start', [p2sh_p2wsh_address['descriptor']])['unspents'][0] |
| 84 | + unspent_output = self.nodes[0].scantxoutset('start', [p2sh_p2wsh_address['descriptor']])['unspents'][0] |
85 | 85 | spk = script_to_p2sh_p2wsh_script(p2sh_p2wsh_address['redeemScript']).hex()
|
86 | 86 | unspent_output['witnessScript'] = p2sh_p2wsh_address['redeemScript']
|
87 | 87 | unspent_output['redeemScript'] = script_to_p2wsh_script(unspent_output['witnessScript']).hex()
|
|
0 commit comments