Skip to content

Commit

Permalink
start waiting before generate
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Mar 18, 2021
1 parent ff5d5f2 commit ca94b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lbry/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,9 @@ def get_all_addresses(tx):

async def generate(self, blocks):
""" Ask lbrycrd to generate some blocks and wait until ledger has them. """
prepare = self.ledger.on_header.where(self.blockchain.is_expected_block)
await self.blockchain.generate(blocks)
await self.ledger.on_header.where(self.blockchain.is_expected_block)
await prepare # no guarantee that it didn't happen already, so start waiting from before calling generate

async def blockchain_claim_name(self, name: str, value: str, amount: str, confirm=True):
txid = await self.blockchain._cli_cmnd('claimname', name, value, amount)
Expand Down

0 comments on commit ca94b31

Please sign in to comment.