mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
tests: add confirm parameters, like the other calls
This commit is contained in:
parent
46c03c0cb2
commit
6e483cba8d
1 changed files with 6 additions and 4 deletions
|
@ -151,14 +151,16 @@ class CommandTestCase(IntegrationTestCase):
|
||||||
await self.blockchain.generate(blocks)
|
await self.blockchain.generate(blocks)
|
||||||
await self.ledger.on_header.where(self.blockchain.is_expected_block)
|
await self.ledger.on_header.where(self.blockchain.is_expected_block)
|
||||||
|
|
||||||
async def blockchain_claim_name(self, name: str, value: str, amount: str):
|
async def blockchain_claim_name(self, name: str, value: str, amount: str, confirm=True):
|
||||||
txid = await self.blockchain._cli_cmnd('claimname', name, value, amount)
|
txid = await self.blockchain._cli_cmnd('claimname', name, value, amount)
|
||||||
await self.generate(1)
|
if confirm:
|
||||||
|
await self.generate(1)
|
||||||
return txid
|
return txid
|
||||||
|
|
||||||
async def blockchain_update_name(self, txid: str, value: str, amount: str):
|
async def blockchain_update_name(self, txid: str, value: str, amount: str, confirm=True):
|
||||||
txid = await self.blockchain._cli_cmnd('updateclaim', txid, value, amount)
|
txid = await self.blockchain._cli_cmnd('updateclaim', txid, value, amount)
|
||||||
await self.generate(1)
|
if confirm:
|
||||||
|
await self.generate(1)
|
||||||
return txid
|
return txid
|
||||||
|
|
||||||
async def out(self, awaitable):
|
async def out(self, awaitable):
|
||||||
|
|
Loading…
Add table
Reference in a new issue