mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user