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

@@ -623,7 +623,7 @@ namespace consensus
p2pmsg::create_msg_from_proposal(fbuf, p);
// In observer mode, we only send out the proposal to ourselves.
if (conf::cfg.current_mode == conf::OPERATING_MODE::OBSERVER)
if (conf::cfg.operating_mode == conf::OPERATING_MODE::OBSERVER)
p2p::send_message_to_self(fbuf);
else
p2p::broadcast_message(fbuf, true);