changeset 29697:4bba444b3d9c

test: fix determinism of address index test
author Braydon Fuller <braydon@bitpay.com>
date Fri, 29 Jul 2016 15:32:34 -0400
parents 009845be3f13
children 1bb854ed1680
files qa/rpc-tests/addressindex.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/qa/rpc-tests/addressindex.py	Fri Jul 22 09:49:18 2016 -0400
+++ b/qa/rpc-tests/addressindex.py	Fri Jul 29 15:32:34 2016 -0400
@@ -23,10 +23,10 @@
     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)
@@ -208,7 +208,7 @@
 
         utxos2 = self.nodes[1].getaddressutxos({"addresses": [address2]})
         assert_equal(len(utxos2), 1)
-        assert_equal(utxos2[0]["satoshis"], 5000000000)
+        assert_equal(utxos2[0]["satoshis"], amount)
 
         # Check sorting of utxos
         self.nodes[2].generate(150)