add min-verification

pull/9/head
Konstantine Tsafatinos 2023-06-26 18:56:44 -04:00
parent a452065779
commit c8471ff85b
1 changed files with 3 additions and 2 deletions

5
skynet/cli.py 100644 → 100755
View File

@ -111,6 +111,7 @@ def download():
@click.option('--seed', '-S', default=None) @click.option('--seed', '-S', default=None)
@click.option('--upscaler', '-U', default='x4') @click.option('--upscaler', '-U', default='x4')
@click.option('--jobs', '-j', default=1) @click.option('--jobs', '-j', default=1)
@click.option('--min-verification', '-mv', default=1)
def enqueue( def enqueue(
account: str, account: str,
permission: str, permission: str,
@ -135,9 +136,9 @@ def enqueue(
}) })
binary = '' binary = ''
for i in kwargs['jobs']: for i in range(kwargs['jobs']):
ec, out = cleos.push_action( ec, out = cleos.push_action(
'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}' 'telos.gpu', 'enqueue', [account, req, binary, reward, kwargs['min-verification']], f'{account}@{permission}'
) )
print(collect_stdout(out)) print(collect_stdout(out))
assert ec == 0 assert ec == 0