Make InboundLedgers, LedgerConsensus abstract

This commit is contained in:
NATTSiM
2013-12-20 17:04:15 -08:00
committed by Vinnie Falco
parent 8c2ec2cfbe
commit 9bdb0774ad
6 changed files with 2156 additions and 1857 deletions

View File

@@ -1403,8 +1403,10 @@ int NetworkOPsImp::beginConsensus (uint256 const& networkClosed, Ledger::pointer
// Create a consensus object to get consensus on this ledger
assert (!mConsensus);
prevLedger->setImmutable ();
mConsensus = boost::make_shared<LedgerConsensus> (
networkClosed, prevLedger, m_ledgerMaster.getCurrentLedger ()->getCloseTimeNC ());
mConsensus = LedgerConsensus::New(
networkClosed, prevLedger,
m_ledgerMaster.getCurrentLedger ()->getCloseTimeNC ());
m_journal.debug << "Initiating consensus engine";
return mConsensus->startup ();