fixed bug in parser

This commit is contained in:
crypro.zoidberg 2019-01-23 18:35:59 +03:00
parent e5795fb131
commit 699bee2cb1
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ using namespace epee;
void run_difficulty_analysis(const std::string& path)
{
std::istringstream fstr(path);
std::ifstream fstr(path);
if (!fstr.good())
{
LOG_ERROR("unable to open " << path);
@ -41,4 +41,3 @@ void run_difficulty_analysis(const std::string& path)
return;
}

View file

@ -103,6 +103,8 @@ int main(int argc, char* argv[])
command_line::add_arg(desc_options, arg_generate_test_genesis_json);
command_line::add_arg(desc_options, arg_max_tx_in_pool);
command_line::add_arg(desc_options, arg_deadlock_guard);
command_line::add_arg(desc_options, arg_difficulty_analysis);