aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_getchaintips.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/rpc_getchaintips.py
parent3832c25f176753b7ddb724c26ee7543fb1e1819e (diff)
downloadbitcoin-0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc.tar.xz
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/rpc_getchaintips.py')
-rwxr-xr-xtest/functional/rpc_getchaintips.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/rpc_getchaintips.py b/test/functional/rpc_getchaintips.py
index bc19c60dde..c869c7262f 100755
--- a/test/functional/rpc_getchaintips.py
+++ b/test/functional/rpc_getchaintips.py
@@ -17,9 +17,6 @@ class GetChainTipsTest (BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
- def skip_test_if_missing_module(self):
- self.skip_if_no_wallet()
-
def run_test(self):
tips = self.nodes[0].getchaintips()
assert_equal(len(tips), 1)
@@ -29,8 +26,8 @@ class GetChainTipsTest (BitcoinTestFramework):
# Split the network and build two chains of different lengths.
self.split_network()
- self.nodes[0].generate(10)
- self.nodes[2].generate(20)
+ self.nodes[0].generatetoaddress(10, self.nodes[0].get_deterministic_priv_key().address)
+ self.nodes[2].generatetoaddress(20, self.nodes[2].get_deterministic_priv_key().address)
self.sync_all([self.nodes[:2], self.nodes[2:]])
tips = self.nodes[1].getchaintips ()