Integrated hpfs in-proc sessions. (#134)

This commit is contained in:
Ravin Perera
2020-10-23 10:04:45 +05:30
committed by GitHub
parent 4f6ff4fbef
commit 7a4e91b0dd
12 changed files with 278 additions and 201 deletions

View File

@@ -73,9 +73,9 @@ void deinit()
state_sync::deinit();
state_serve::deinit();
read_req::deinit();
sc::deinit();
usr::deinit();
p2p::deinit();
hpfs::deinit();
}
void sigint_handler(int signum)
@@ -192,8 +192,14 @@ int main(int argc, char **argv)
<< (conf::cfg.startup_mode == conf::OPERATING_MODE::OBSERVER ? "Observer" : "Proposer");
LOG_INFO << "Public key: " << conf::cfg.pubkeyhex.substr(2); // Public key without 'ed' prefix.
if (hpfs::init() != 0 || p2p::init() != 0 || usr::init() != 0 || read_req::init() != 0 ||
state_serve::init() != 0 || state_sync::init() != 0 || ledger::init() || consensus::init() != 0)
if (p2p::init() != 0 ||
usr::init() != 0 ||
sc::init() ||
read_req::init() != 0 ||
state_serve::init() != 0 ||
state_sync::init() != 0 ||
ledger::init() ||
consensus::init() != 0)
{
deinit();
return -1;