Skip to content

Commit fa25210

Browse files
author
MarcoFalke
committed
qa: Fix wallet_txn_doublespend issue
1 parent 1111aec commit fa25210

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/functional/feature_proxy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports
4343

44-
4544
class ProxyTest(BitcoinTestFramework):
4645
def set_test_params(self):
4746
self.num_nodes = 4

test/functional/wallet_txn_doublespend.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ def setup_network(self):
3434
def run_test(self):
3535
# All nodes should start with 1,250 BTC:
3636
starting_balance = 1250
37+
38+
# All nodes should be out of IBD.
39+
# If the nodes are not all out of IBD, that can interfere with
40+
# blockchain sync later in the test when nodes are connected, due to
41+
# timing issues.
42+
for n in self.nodes:
43+
assert n.getblockchaininfo()["initialblockdownload"] == False
44+
3745
for i in range(4):
3846
assert_equal(self.nodes[i].getbalance(), starting_balance)
3947
self.nodes[i].getnewaddress("") # bug workaround, coins generated assigned to first getnewaddress!

0 commit comments

Comments
 (0)