mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-27 07:36:52 +00:00
fix(app): persist genesis successor state tree
This commit is contained in:
@@ -1835,6 +1835,10 @@ ApplicationImp::startGenesisLedger()
|
||||
auto const next =
|
||||
std::make_shared<Ledger>(*genesis, timeKeeper().closeTime());
|
||||
next->updateSkipList();
|
||||
// Consensus-built ledgers flush their state trees, but this genesis
|
||||
// successor bypasses that path. Persist its state before it can be
|
||||
// advertised as complete or loaded by a restarted node.
|
||||
next->stateMap().flushDirty(hotACCOUNT_NODE);
|
||||
XRPL_ASSERT(
|
||||
next->read(keylet::fees()),
|
||||
"ripple::ApplicationImp::startGenesisLedger : valid ledger fees");
|
||||
|
||||
Reference in New Issue
Block a user