Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 19bf103

Browse files
authored
Merge pull request #4635 from demon1999/develop2
Better command line in ethkey and eth
2 parents 55f9b95 + 4b0bb1c commit 19bf103

File tree

6 files changed

+480
-496
lines changed

6 files changed

+480
-496
lines changed

eth/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(
88
add_executable(eth ${sources})
99
target_link_libraries(
1010
eth
11-
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore
11+
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore Boost::program_options
1212
)
1313

1414
target_include_directories(eth PRIVATE ../utils)

eth/MinerAux.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ class MinerCLI
102102
BasicAuthority::init();
103103
}
104104

105-
bool interpretOption(int& i, int argc, char** argv)
105+
bool interpretOption(size_t& i, vector<string> const& argv)
106106
{
107+
size_t argc = argv.size();
107108
string arg = argv[i];
108109
if (arg == "--benchmark-warmup" && i + 1 < argc)
109110
try {

0 commit comments

Comments
 (0)