Skip to content

Commit af7bae7

Browse files
committed
[tests] Don't stop-start unnecessarily in rpc_fundrawtransaction.py
This was only added in c1dde3a to match behaviour when `encryptwallet` would restart the node. It's not required for the test (and slows things down).
1 parent 9a85052 commit af7bae7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/functional/rpc_fundrawtransaction.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -494,22 +494,6 @@ def test_locked_wallet(self):
494494
self.log.info("Test fundrawtxn with locked wallet")
495495

496496
self.nodes[1].encryptwallet("test")
497-
self.stop_nodes()
498-
499-
self.start_nodes()
500-
# This test is not meant to test fee estimation and we'd like
501-
# to be sure all txns are sent at a consistent desired feerate.
502-
for node in self.nodes:
503-
node.settxfee(self.min_relay_tx_fee)
504-
505-
connect_nodes(self.nodes[0], 1)
506-
connect_nodes(self.nodes[1], 2)
507-
connect_nodes(self.nodes[0], 2)
508-
connect_nodes(self.nodes[0], 3)
509-
# Again lock the watchonly UTXO or nodes[0] may spend it, because
510-
# lockunspent is memory-only and thus lost on restart.
511-
self.nodes[0].lockunspent(False, [{"txid": self.watchonly_txid, "vout": self.watchonly_vout}])
512-
self.sync_all()
513497

514498
# Drain the keypool.
515499
self.nodes[1].getnewaddress()

0 commit comments

Comments
 (0)