Skip to content

Commit

Permalink
qa: Fix wallet_txn_doublespend issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Feb 19, 2019
1 parent 1111aec commit fa25210
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/functional/feature_proxy.py
Expand Up @@ -41,7 +41,6 @@

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


class ProxyTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
Expand Down
8 changes: 8 additions & 0 deletions test/functional/wallet_txn_doublespend.py
Expand Up @@ -34,6 +34,14 @@ def setup_network(self):
def run_test(self):
# All nodes should start with 1,250 BTC:
starting_balance = 1250

# All nodes should be out of IBD.
# If the nodes are not all out of IBD, that can interfere with
# blockchain sync later in the test when nodes are connected, due to
# timing issues.
for n in self.nodes:
assert n.getblockchaininfo()["initialblockdownload"] == False

for i in range(4):
assert_equal(self.nodes[i].getbalance(), starting_balance)
self.nodes[i].getnewaddress("") # bug workaround, coins generated assigned to first getnewaddress!
Expand Down

0 comments on commit fa25210

Please sign in to comment.