Skip to content

Commit a563f41

Browse files
Remove second node since only 1 is needed for the test
1 parent 1f4cdb3 commit a563f41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/rpc_signrawtransactionwithkey.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
class SignRawTransactionWithKeyTest(BitcoinTestFramework):
4848
def set_test_params(self):
49-
self.num_nodes = 2
49+
self.num_nodes = 1
5050

5151
def send_to_address(self, addr, amount):
5252
script_pub_key = address_to_scriptpubkey(addr)
@@ -76,12 +76,12 @@ def witness_script_test(self):
7676
self.log.info("Test signing transaction to P2SH-P2WSH addresses without wallet")
7777
# Create a new P2SH-P2WSH 1-of-1 multisig address:
7878
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")
8080
# send transaction to P2SH-P2WSH 1-of-1 multisig address
8181
self.send_to_address(p2sh_p2wsh_address["address"], 49.999)
8282
self.generate(self.nodes[0], 1)
8383
# 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]
8585
spk = script_to_p2sh_p2wsh_script(p2sh_p2wsh_address['redeemScript']).hex()
8686
unspent_output['witnessScript'] = p2sh_p2wsh_address['redeemScript']
8787
unspent_output['redeemScript'] = script_to_p2wsh_script(unspent_output['witnessScript']).hex()

0 commit comments

Comments
 (0)