Don't try to acquire an *empty* transaction set.

This commit is contained in:
JoelKatz
2012-05-31 20:52:52 -07:00
parent 11a85647ac
commit a4abe5a9dc

View File

@@ -154,6 +154,9 @@ LedgerConsensus::LedgerConsensus(Ledger::pointer previousLedger, uint32 closeTim
{
Log(lsDEBUG) << "Creating consensus object";
Log(lsTRACE) << "LCL:" << previousLedger->getHash().GetHex() <<", ct=" << closeTime;
// we always have an empty map
mComplete[uint256()] = boost::make_shared<SHAMap>();
}
void LedgerConsensus::takeInitialPosition(Ledger::pointer initialLedger)