Skip to content

Commit

Permalink
hdmint mempool zap fix (#852)
Browse files Browse the repository at this point in the history
* hdmint mempool zap fix

* Fix for zapwalletmints test
  • Loading branch information
riordant authored Jun 3, 2020
1 parent 3de577b commit 50822ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qa/rpc-tests/hdmint_mempool_zap.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def hdmint_zap(self, configuration):
bitcoind_processes[0].wait()

self.nodes[0] = start_node(0,self.options.tmpdir, configuration)

time.sleep(1) # rescan time
sigma_mints2 = self.list_unspent_sigma_mints()

assert sigma_mints2 == sigma_mints1, \
Expand All @@ -78,7 +78,7 @@ def hdmint_zap(self, configuration):
bitcoind_processes[0].wait()

self.nodes[0] = start_node(0, self.options.tmpdir, configuration)

time.sleep(1) # rescan time
sigma_mints3 = self.list_unspent_sigma_mints()

assert sigma_mints3 == sigma_mints1, \
Expand Down
6 changes: 5 additions & 1 deletion qa/rpc-tests/sigma_zapwalletmints.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ def run_test(self):
.format(len(sigma_mints1))

# stop nodes
blockcount = self.nodes[0].getblockcount()
stop_nodes(self.nodes)

self.nodes = start_nodes(1, self.options.tmpdir, "-zapwalletmints")
self.sync_all()
while self.nodes[0].getblockcount() < blockcount:
time.sleep(0.1)
time.sleep(1) # to handle rescan following reindex

sigma_mints2 = self.nodes[0].listunspentsigmamints()

assert len(sigma_mints2) == len(sigma_mints1), \
Expand Down

0 comments on commit 50822ba

Please sign in to comment.