mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Consensus singleton and lock changes (RIPD-1054):
* Make LedgerConsensus object a singleton * Protect consensus structures with their own locks * Simplify NetworkOPs interaction with LedgerConsensus * Log when we build and validate the same ledger
This commit is contained in:
@@ -1030,6 +1030,12 @@ void ApplicationImp::setup()
|
||||
*config_);
|
||||
add (*m_overlay); // add to PropertyStream
|
||||
|
||||
// start first consensus round
|
||||
if (! m_networkOPs->beginConsensus(m_ledgerMaster->getClosedLedger()->info().hash))
|
||||
{
|
||||
LogicError ("Unable to start consensus");
|
||||
}
|
||||
|
||||
m_overlay->setupValidatorKeyManifests (*config_, getWalletDB ());
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user