Persisted contract UNL updates in config file. (#171)

* Refactored config loading and saving.
* Aded unl update persistance.
This commit is contained in:
Ravin Perera
2020-11-27 09:06:17 +05:30
committed by GitHub
parent 4de1bb2393
commit 80392cc995
6 changed files with 144 additions and 119 deletions

View File

@@ -194,7 +194,7 @@ int main(int argc, char **argv)
hplog::init();
LOG_INFO << "Operating mode: "
<< (conf::cfg.startup_mode == conf::OPERATING_MODE::OBSERVER ? "Observer" : "Proposer");
<< (conf::cfg.operating_mode == conf::OPERATING_MODE::OBSERVER ? "Observer" : "Proposer");
LOG_INFO << "Public key: " << conf::cfg.pubkeyhex.substr(2); // Public key without 'ed' prefix.
if (ledger::init() ||