From c04e14fa61af0d447418d6586dff63eb53063786 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 23 Aug 2016 15:27:52 +0400 Subject: [PATCH] Merge #958: test: fix determinism of address index test 5765e5f cherry-pick 05cf410839dd48882768412d2637b53e6569a677 --- qa/rpc-tests/addressindex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/rpc-tests/addressindex.py b/qa/rpc-tests/addressindex.py index 3085dfaf7..5e745d54b 100755 --- a/qa/rpc-tests/addressindex.py +++ b/qa/rpc-tests/addressindex.py @@ -23,10 +23,10 @@ class AddressIndexTest(BitcoinTestFramework): def setup_network(self): self.nodes = [] # Nodes 0/1 are "wallet" nodes - self.nodes.append(start_node(0, self.options.tmpdir, ["-debug"])) + self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-relaypriority=0"])) self.nodes.append(start_node(1, self.options.tmpdir, ["-debug", "-addressindex"])) # Nodes 2/3 are used for testing - self.nodes.append(start_node(2, self.options.tmpdir, ["-debug", "-addressindex"])) + self.nodes.append(start_node(2, self.options.tmpdir, ["-debug", "-addressindex", "-relaypriority=0"])) self.nodes.append(start_node(3, self.options.tmpdir, ["-debug", "-addressindex"])) connect_nodes(self.nodes[0], 1) connect_nodes(self.nodes[0], 2) @@ -210,7 +210,7 @@ class AddressIndexTest(BitcoinTestFramework): utxos2 = self.nodes[1].getaddressutxos({"addresses": [address2]}) assert_equal(len(utxos2), 1) - assert_equal(utxos2[0]["satoshis"], 50000000000) + assert_equal(utxos2[0]["satoshis"], amount) # Check sorting of utxos self.nodes[2].generate(150)