mirror of https://github.com/skygpu/skynet.git
add min-verification
parent
a452065779
commit
c8471ff85b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue