Skip to content

Commit

Permalink
Merge pull request bitcoin#30 from braydonf/0.12.1-bitcore-fix-test
Browse files Browse the repository at this point in the history
test: fix determinism of address index test
  • Loading branch information
kleetus committed Aug 18, 2016
2 parents de6f29e + 05cf410 commit 33e35c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qa/rpc-tests/addressindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def setup_chain(self):
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)
Expand Down Expand Up @@ -208,7 +208,7 @@ def run_test(self):

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)
Expand Down

0 comments on commit 33e35c8

Please sign in to comment.