Ledger consensus stuff.

This commit is contained in:
JoelKatz
2012-05-23 15:18:34 -07:00
parent fecf3aaac9
commit 9b9177f15e
3 changed files with 36 additions and 7 deletions

View File

@@ -368,7 +368,8 @@ int NetworkOPs::beginConsensus(Ledger::pointer closingLedger)
// Create a consensus object to get consensus on this ledger
if (!!mConsensus) mConsensus->abort();
mConsensus = boost::make_shared<LedgerConsensus>(prevLedger, closingLedger);
mConsensus = boost::make_shared<LedgerConsensus>(prevLedger);
mConsensus->closeTime(closingLedger); // FIXME: Create consensus a few seconds before close time
#ifdef DEBUG
std::cerr << "Broadcasting ledger close" << std::endl;