Skip to content

Commit

Permalink
Removed block syncing in elysium reindex test (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
Panu authored and riordant committed Jul 13, 2020
1 parent 3158743 commit d77df36
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qa/rpc-tests/elysium_sigma_reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ def run_test(self):
assert_equal(2, len(confirmed_mints))
assert_equal(2, len(unconfirmed_mints))

blockcount = self.nodes[0].getblockcount()

# restart with reindexing
stop_node(self.nodes[0], 0)
self.nodes[0] = start_node(0, self.options.tmpdir, ['-elysium', '-reindex'])
connect_nodes(self.nodes[0], 1)

sync_blocks(self.nodes)
time.sleep(1)
while self.nodes[0].getblockcount() < blockcount:
time.sleep(0.1)

connect_nodes(self.nodes[0], 1)

reindexed_confirmed_mints = self.nodes[0].elysium_listmints()
self.compare_mints(confirmed_mints, reindexed_confirmed_mints)
Expand All @@ -73,7 +76,6 @@ def run_test(self):
self.nodes[0].elysium_sendspend(self.addrs[0], sigma_property, 1)

self.nodes[0].generate(1)
sync_blocks(self.nodes)

# all mints should be spend
remaining_mints = self.nodes[0].elysium_listmints()
Expand Down

0 comments on commit d77df36

Please sign in to comment.