Fix zomp's app file, config from cmd line, add network config
This commit is contained in:
@@ -24,7 +24,8 @@ to_json() ->
|
||||
schema() ->
|
||||
obj(schema_init(),
|
||||
#{
|
||||
pubkey => str(#{pattern => ?ACCOUNT_PATTERN},
|
||||
network => str(#{ default => <<"mainnet">> })
|
||||
, pubkey => str(#{pattern => ?ACCOUNT_PATTERN},
|
||||
<<"Primary client pubkey">>)
|
||||
, extra_pubkeys => array(#{ description =>
|
||||
<<"Additional worker pubkeys, sharing rewards">>
|
||||
@@ -52,12 +53,20 @@ pool() ->
|
||||
pool_admin() ->
|
||||
obj(#{
|
||||
url => str(#{ default => <<"https://test.gajumining.com/api/workers/{CLIENT_ID}">>
|
||||
, description => <<"URL of Eureka worker api">> })
|
||||
, description => <<"URL of Eureka worker api">> }),
|
||||
default_per_network =>
|
||||
obj(#{
|
||||
testnet =>
|
||||
str(#{default => <<"https://test.gajumining.com/api/workers/{CLIENT_ID}">>})
|
||||
, mainnet =>
|
||||
str(#{default => <<"https://gajumining.com/api/workers/{CLIENT_ID}">>})
|
||||
})
|
||||
}).
|
||||
|
||||
workers() ->
|
||||
array(
|
||||
#{default => [#{executable => <<"mean29-generic">>}],
|
||||
#{default => [#{executable => <<"mean29-generic">>,
|
||||
executable_group => <<"aecuckoo">>}],
|
||||
description =>
|
||||
<<"Definitions of workers' configurations. If no worker are configured one worker "
|
||||
"is used as default, i.e. 'mean29-generic' executable without any extra args.">>},
|
||||
@@ -74,7 +83,8 @@ workers() ->
|
||||
"from faster CPU supporting AVX2 instructions).">>}),
|
||||
executable_group =>
|
||||
str(#{description => <<"Group of executable binaries of the worker.">>,
|
||||
enum => [ <<"aecuckoo">>, <<"aecuckooprebuilt">>, <<"gmcuckoo">>, <<"cuda">>, <<"gajumine">> ],
|
||||
enum => [ <<"aecuckoo">>, <<"aecuckooprebuilt">>,
|
||||
<<"gmcuckoo">>, <<"cuda">>, <<"gajumine">> ],
|
||||
default => <<"aecuckoo">>}),
|
||||
extra_args =>
|
||||
str(#{description => <<"Extra arguments to pass to the worker executable binary. "
|
||||
|
||||
Reference in New Issue
Block a user