Skip to content

Commit

Permalink
Merge branch 'master' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
freenetcoder committed Jun 11, 2020
2 parents ba1e4a2 + 8b45a30 commit fb24bfc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
Binary file added docs/media/XGM_for_black_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/XGM_for_white_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/XGM_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/main.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/media/readme.md
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion explorer/explorer_node.cpp
Expand Up @@ -181,7 +181,7 @@ bool parse_cmdline(int argc, char* argv[], Options& o) {
}
}

getRulesOptions(vm);
getRulesOptions(vm); //todo for assetchains

return true;
}
Expand Down
21 changes: 9 additions & 12 deletions utility/cli/options.cpp
Expand Up @@ -409,16 +409,6 @@ namespace grimm
}
}

getRulesOptions(vm);

return vm;
}

void getRulesOptions(po::variables_map& vm)
{
#define THE_MACRO(type, name, comment) Rules::get().name = vm[#name].as<type>();
RulesParams(THE_MACRO);
#undef THE_MACRO
Rules::get().Emission.Value0 = vm[cli::CAC_EMISSION_BLOCK].as<Amount>();
Rules::get().Emission.Premine = vm[cli::CAC_PREMINE].as<Amount>();
Rules::get().Emission.Drop0 = vm[cli::CAC_EMISSION_DROP0].as<Amount>();
Expand All @@ -440,9 +430,16 @@ namespace grimm
Rules::get().CA.Enabled = vm[cli::ASSET_ENABLE].as<bool>();
Rules::get().CA.Deposit = vm[cli::ASSET_EXCHANGE].as<bool>();

// Rules::get().isGrimmPOW = vm[cli::CAC_GRIMMPOW].as<bool>();
// add other params
getRulesOptions(vm);

return vm;
}

void getRulesOptions(po::variables_map& vm)
{
#define THE_MACRO(type, name, comment) Rules::get().name = vm[#name].as<type>();
RulesParams(THE_MACRO);
#undef THE_MACRO
}

int getLogLevel(const std::string &dstLog, const po::variables_map& vm, int defaultValue)
Expand Down
2 changes: 1 addition & 1 deletion wallet/api_cli.cpp
Expand Up @@ -1058,7 +1058,7 @@ int main(int argc, char* argv[])

vm.notify();

getRulesOptions(vm);
getRulesOptions(vm); //todo for assetchain

Rules::get().UpdateChecksum();
LOG_INFO() << "Grimm Wallet API " << PROJECT_VERSION << " (" << BRANCH_NAME << ")";
Expand Down

0 comments on commit fb24bfc

Please sign in to comment.