Keep hp cfg and patch cfg consistent. (#216)

* Copy from hp cfg to patch cfg upon startup.
* Persist to hp cfg whenever patch cfg is updated.
This commit is contained in:
Ravin Perera
2021-01-10 17:48:12 +05:30
committed by GitHub
parent d39b9a56ec
commit 11cb57e9ee
8 changed files with 257 additions and 266 deletions

View File

@@ -200,7 +200,6 @@ int main(int argc, char **argv)
LOG_INFO << "Contract: " << conf::cfg.contract.id << " (" << conf::cfg.contract.version << ")";
if (hpfs::init() == -1 ||
conf::apply_patch_changes() == -1 ||
hpfs_serve::init() == -1 ||
hpfs_sync::init() == -1 ||
ledger::init() == -1 ||