mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-21 02:55:50 +00:00
Fix the reason we couldn't recover ledgers. Ledger base data must be stored in CAS.
This commit is contained in:
@@ -378,6 +378,12 @@ void Ledger::saveAcceptedLedger(bool fromConsensus, LoadEvent::pointer event)
|
|||||||
assert (getAccountHash() == mAccountStateMap->getHash());
|
assert (getAccountHash() == mAccountStateMap->getHash());
|
||||||
assert (getTransHash() == mTransactionMap->getHash());
|
assert (getTransHash() == mTransactionMap->getHash());
|
||||||
|
|
||||||
|
// Save the ledger header in the hashed object store
|
||||||
|
Serializer s(128);
|
||||||
|
s.add32(sHP_Ledger);
|
||||||
|
addRaw(s);
|
||||||
|
theApp->getHashedObjectStore().store(hotLEDGER, mLedgerSeq, s.peekData(), mHash);
|
||||||
|
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
|
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
|
||||||
|
|||||||
Reference in New Issue
Block a user