Create a new open ledger based on the last closed ledger from the DB.

Ledgers loaded from DB are always immutable.
This commit is contained in:
JoelKatz
2012-10-09 11:09:02 -07:00
parent daedc85cdd
commit 7fba10da4e
3 changed files with 17 additions and 11 deletions

View File

@@ -93,7 +93,7 @@ public:
Ledger(const uint256 &parentHash, const uint256 &transHash, const uint256 &accountHash,
uint64 totCoins, uint32 closeTime, uint32 parentCloseTime, int closeFlags, int closeResolution,
uint32 ledgerSeq,bool immutable); // used for database ledgers
uint32 ledgerSeq, bool immutable); // used for database ledgers
Ledger(const std::vector<unsigned char>& rawLedger);
@@ -103,7 +103,7 @@ public:
Ledger(Ledger& target, bool isMutable); // snapshot
static Ledger::pointer getSQL(const std::string& sqlStatement,bool immutable=false);
static Ledger::pointer getSQL(const std::string& sqlStatement);
void updateHash();
void setClosed() { mClosed = true; }