aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_node_network_limited.py
diff options
context:
space:
mode:
authorsanket1729 <smk7@illinois.edu>2018-09-15 04:32:12 -0500
committersanket1729 <smk7@illinois.edu>2018-09-17 08:25:10 -0500
commit0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc (patch)
treef61c3d6d645e2c7d11a7ffff230314068315532f /test/functional/p2p_node_network_limited.py
parent3832c25f176753b7ddb724c26ee7543fb1e1819e (diff)
Changed functional tests which do not require wallets to run without
skipping .Addreses #14216. Changed get_deterministic_priv_key() to a named tuple
Diffstat (limited to 'test/functional/p2p_node_network_limited.py')
-rwxr-xr-xtest/functional/p2p_node_network_limited.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/p2p_node_network_limited.py b/test/functional/p2p_node_network_limited.py
index a16c6a1d47..ec3d336dc1 100755
--- a/test/functional/p2p_node_network_limited.py
+++ b/test/functional/p2p_node_network_limited.py
@@ -34,9 +34,6 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
self.num_nodes = 3
self.extra_args = [['-prune=550', '-addrmantest'], [], []]
- def skip_test_if_missing_module(self):
- self.skip_if_no_wallet()
-
def disconnect_all(self):
disconnect_nodes(self.nodes[0], 1)
disconnect_nodes(self.nodes[1], 0)
@@ -62,7 +59,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
self.log.info("Mine enough blocks to reach the NODE_NETWORK_LIMITED range.")
connect_nodes_bi(self.nodes, 0, 1)
- blocks = self.nodes[1].generate(292)
+ blocks = self.nodes[1].generatetoaddress(292, self.nodes[1].get_deterministic_priv_key().address)
sync_blocks([self.nodes[0], self.nodes[1]])
self.log.info("Make sure we can max retrieve block at tip-288.")
@@ -105,7 +102,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
self.disconnect_all()
# mine 10 blocks on node 0 (pruned node)
- self.nodes[0].generate(10)
+ self.nodes[0].generatetoaddress(10, self.nodes[0].get_deterministic_priv_key().address)
# connect node1 (non pruned) with node0 (pruned) and check if the can sync
connect_nodes_bi(self.nodes, 0, 1)