forked from lthn/blockchain
parse time data
This commit is contained in:
parent
f04536f543
commit
29efec2bd6
1 changed files with 8 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ using namespace epee;
|
|||
#include "currency_core/currency_format_utils.h"
|
||||
#include "generate_test_genesis.h"
|
||||
#include "deadlock_guard_test.h"
|
||||
#include "difficulty_analysis.h"
|
||||
|
||||
namespace po = boost::program_options;
|
||||
|
||||
|
|
@ -51,6 +52,7 @@ namespace
|
|||
const command_line::arg_descriptor<size_t> arg_blocks = {"blocks", "number of blocks to generate", 250};
|
||||
const command_line::arg_descriptor<size_t> arg_generate_test_genesis_json = { "generate-test-genesis-json", "generates test genesis json, specify amount of accounts", 0, true };
|
||||
const command_line::arg_descriptor<bool> arg_deadlock_guard = { "test-deadlock-guard", "Do deadlock guard test", false, true };
|
||||
const command_line::arg_descriptor<std::string> arg_difficulty_analysis = { "difficulty-analysis", "Do difficulty analysis", "", true };
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -173,7 +175,12 @@ int main(int argc, char* argv[])
|
|||
return 0;
|
||||
}else if(command_line::has_arg(vm, arg_generate_test_genesis_json))
|
||||
{
|
||||
generate_test_genesis(command_line::get_arg(vm, arg_generate_test_genesis_json));
|
||||
generate_test_genesis(command_line::get_arg(vm, arg_generate_test_genesis_json));
|
||||
return 0;
|
||||
}
|
||||
else if (command_line::has_arg(vm, arg_difficulty_analysis))
|
||||
{
|
||||
run_difficulty_analysis(command_line::get_arg(vm, arg_difficulty_analysis));
|
||||
return 0;
|
||||
}
|
||||
else if (command_line::get_arg(vm, arg_deadlock_guard) )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue