diff options
author | sanket1729 <smk7@illinois.edu> | 2018-09-15 04:32:12 -0500 |
---|---|---|
committer | sanket1729 <smk7@illinois.edu> | 2018-09-17 08:25:10 -0500 |
commit | 0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc (patch) | |
tree | f61c3d6d645e2c7d11a7ffff230314068315532f /test/functional/p2p_invalid_block.py | |
parent | 3832c25f176753b7ddb724c26ee7543fb1e1819e (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_invalid_block.py')
-rwxr-xr-x | test/functional/p2p_invalid_block.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/p2p_invalid_block.py b/test/functional/p2p_invalid_block.py index fd6b84f8b2..7be7c9b3ee 100755 --- a/test/functional/p2p_invalid_block.py +++ b/test/functional/p2p_invalid_block.py @@ -24,9 +24,6 @@ class InvalidBlockRequestTest(BitcoinTestFramework): self.setup_clean_chain = True self.extra_args = [["-whitelist=127.0.0.1"]] - def skip_test_if_missing_module(self): - self.skip_if_no_wallet() - def run_test(self): # Add p2p connection to node0 node = self.nodes[0] # convenience reference to the node @@ -48,7 +45,7 @@ class InvalidBlockRequestTest(BitcoinTestFramework): node.p2p.send_blocks_and_test([block1], node, success=True) self.log.info("Mature the block.") - node.generate(100) + node.generatetoaddress(100, node.get_deterministic_priv_key().address) best_block = node.getblock(node.getbestblockhash()) tip = int(node.getbestblockhash(), 16) |