fix(app): persist genesis successor state tree

This commit is contained in:
Nicholas Dudfield
2026-09-18 13:34:32 +07:00
parent 2658752d76
commit afe6dc534d

View File

@@ -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");