remove executable_group from config
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
-include_lib("kernel/include/logger.hrl").
|
||||
|
||||
-define(DEFAULT_EXECUTABLE_GROUP , <<"cpu">>).
|
||||
-define(DEFAULT_EXECUTABLE_GROUP , <<"gmhive">>).
|
||||
-define(DEFAULT_EXTRA_ARGS , <<>>).
|
||||
-define(DEFAULT_HEX_ENCODED_HEADER , false).
|
||||
-define(DEFAULT_REPEATS , 1).
|
||||
@@ -55,7 +55,7 @@ generate_from_hash(Hash, Target, Nonce, Config, WorkerInstance) ->
|
||||
|
||||
build_worker_config(Config) when is_map(Config) ->
|
||||
Exec = maps:get(<<"executable">>, Config),
|
||||
ExecGroup = maps:get(<<"executable_group">>, Config, ?DEFAULT_EXECUTABLE_GROUP),
|
||||
ExecGroup = ?DEFAULT_EXECUTABLE_GROUP,
|
||||
ExtraArgs = maps:get(<<"extra_args">>, Config, ?DEFAULT_EXTRA_ARGS),
|
||||
HexEncHdr = maps:get(<<"hex_encoded_header">>, Config,
|
||||
hex_encoding_default(ExecGroup, Exec)),
|
||||
|
||||
Reference in New Issue
Block a user