2020-02-14 18:19:55 +01:00
|
|
|
import asyncio
|
|
|
|
from lbry.blockchain import Lbrycrd
|
|
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
chain = Lbrycrd.regtest()
|
|
|
|
print(f'Generating: {chain.data_path}')
|
|
|
|
await chain.ensure()
|
|
|
|
await chain.start()
|
|
|
|
await chain.generate(200)
|
2020-02-14 18:55:45 +01:00
|
|
|
step = 10
|
|
|
|
for block in range(200):
|
|
|
|
for i in range(0, 200, step):
|
|
|
|
print(f'claim-{block}-{i}-{i + step}')
|
|
|
|
await asyncio.gather(*(
|
|
|
|
chain.claim_name(f'claim-{block}-{i + tx}', 'beef' * 4000, '0.001')
|
|
|
|
for tx in range(1, step + 1)
|
|
|
|
))
|
|
|
|
await chain.generate(5)
|
|
|
|
print('done!')
|
2020-02-14 18:19:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
asyncio.run(main())
|