mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Subject unl list to consensus. (#186)
* Unl hash in consensus proposals. * Unl syncing and sync request serving. * Adding unl hash to the ledger block.
This commit is contained in:
committed by
GitHub
parent
a87e8a0c7e
commit
7bf0475b6f
21
src/main.cpp
21
src/main.cpp
@@ -17,6 +17,7 @@
|
||||
#include "state/state_common.hpp"
|
||||
#include "state/state_sync.hpp"
|
||||
#include "state/state_serve.hpp"
|
||||
#include "unl.hpp"
|
||||
|
||||
/**
|
||||
* Parses CLI args and extracts hot pocket command and parameters given.
|
||||
@@ -76,6 +77,7 @@ void deinit()
|
||||
state_sync::deinit();
|
||||
state_serve::deinit();
|
||||
sc::deinit();
|
||||
unl::deinit();
|
||||
ledger::deinit();
|
||||
}
|
||||
|
||||
@@ -197,15 +199,16 @@ int main(int argc, char **argv)
|
||||
<< (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() ||
|
||||
sc::init() ||
|
||||
state_common::init() != 0 ||
|
||||
state_serve::init() != 0 ||
|
||||
state_sync::init() != 0 ||
|
||||
consensus::init() != 0 ||
|
||||
read_req::init() != 0 ||
|
||||
p2p::init() != 0 ||
|
||||
usr::init() != 0)
|
||||
if (ledger::init() == -1 ||
|
||||
unl::init() == -1 ||
|
||||
sc::init() == -1 ||
|
||||
state_common::init() == -1 ||
|
||||
state_serve::init() == -1 ||
|
||||
state_sync::init() == -1 ||
|
||||
consensus::init() == -1 ||
|
||||
read_req::init() == -1 ||
|
||||
p2p::init() == -1 ||
|
||||
usr::init() == -1)
|
||||
{
|
||||
deinit();
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user