If we get a ledger from the SQL database, it must be closed.

This commit is contained in:
JoelKatz
2013-01-30 10:15:42 -08:00
parent 7213fb9f21
commit 3b338b8825

View File

@@ -529,6 +529,7 @@ Ledger::pointer Ledger::getSQL(const std::string& sql)
// Log(lsTRACE) << "Constructing ledger " << ledgerSeq << " from SQL";
Ledger::pointer ret = boost::make_shared<Ledger>(prevHash, transHash, accountHash, totCoins,
closingTime, prevClosingTime, closeFlags, closeResolution, ledgerSeq);
ret->setClosed();
if (ret->getHash() != ledgerHash)
{
if (sLog(lsERROR))