aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_listsinceblock.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-16 09:22:49 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-09-17 13:08:17 -0400
commitfaaee1e39a91b3f603881655d3980c29af09852b (patch)
tree902cf7b6a2756ee81681e8a2c6b6084ee6e24b1f /test/functional/wallet_listsinceblock.py
parent1111bb91f517838e5b9f778bf6b5a9c8d561e857 (diff)
downloadbitcoin-faaee1e39a91b3f603881655d3980c29af09852b.tar.xz
test: Use connect_nodes when connecting nodes in the test_framework
Diffstat (limited to 'test/functional/wallet_listsinceblock.py')
-rwxr-xr-xtest/functional/wallet_listsinceblock.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/functional/wallet_listsinceblock.py b/test/functional/wallet_listsinceblock.py
index 021a29d4ac..4aeb393255 100755
--- a/test/functional/wallet_listsinceblock.py
+++ b/test/functional/wallet_listsinceblock.py
@@ -5,9 +5,15 @@
"""Test the listsincelast RPC."""
from test_framework.test_framework import BitcoinTestFramework
-from test_framework.util import assert_equal, assert_array_result, assert_raises_rpc_error
+from test_framework.util import (
+ assert_array_result,
+ assert_equal,
+ assert_raises_rpc_error,
+ connect_nodes,
+)
-class ListSinceBlockTest (BitcoinTestFramework):
+
+class ListSinceBlockTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
self.setup_clean_chain = True
@@ -16,6 +22,9 @@ class ListSinceBlockTest (BitcoinTestFramework):
self.skip_if_no_wallet()
def run_test(self):
+ # All nodes are in IBD from genesis, so they'll need the miner (node2) to be an outbound connection, or have
+ # only one connection. (See fPreferredDownload in net_processing)
+ connect_nodes(self.nodes[1], 2)
self.nodes[2].generate(101)
self.sync_all()