aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_leak.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_leak.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/p2p_leak.py')
-rwxr-xr-xtest/functional/p2p_leak.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py
index 05354d17e1..336d34a81d 100755
--- a/test/functional/p2p_leak.py
+++ b/test/functional/p2p_leak.py
@@ -93,9 +93,6 @@ class P2PLeakTest(BitcoinTestFramework):
self.num_nodes = 1
self.extra_args = [['-banscore=' + str(banscore)]]
- def skip_test_if_missing_module(self):
- self.skip_if_no_wallet()
-
def run_test(self):
no_version_bannode = self.nodes[0].add_p2p_connection(CNodeNoVersionBan(), send_version=False, wait_for_verack=False)
no_version_idlenode = self.nodes[0].add_p2p_connection(CNodeNoVersionIdle(), send_version=False, wait_for_verack=False)
@@ -106,7 +103,7 @@ class P2PLeakTest(BitcoinTestFramework):
wait_until(lambda: no_verack_idlenode.version_received, timeout=10, lock=mininode_lock)
# Mine a block and make sure that it's not sent to the connected nodes
- self.nodes[0].generate(1)
+ self.nodes[0].generatetoaddress(1, self.nodes[0].get_deterministic_priv_key().address)
#Give the node enough time to possibly leak out a message
time.sleep(5)