diff --git a/src/ripple/app/misc/SHAMapStore.h b/src/ripple/app/misc/SHAMapStore.h index fc23d06e043..f8724499d41 100644 --- a/src/ripple/app/misc/SHAMapStore.h +++ b/src/ripple/app/misc/SHAMapStore.h @@ -73,13 +73,13 @@ class SHAMapStore This defines the lower bound for attempting to acquire historical ledgers over the peer to peer network. - When the process starts, it is set to that of the minimum persisted - in the ledger database, if any. If online_delete is enabled, then - each time online_delete executes, just prior to clearing SQL databases - of historical ledgers, move the value forward to one past the greatest - ledger being deleted. This minimizes fetching of ledgers that are in - the process of being deleted. Without online_delete, this value is - always the minimum value persisted in the ledger database, if any. + If online_delete is enabled, then each time online_delete executes + and just prior to clearing SQL databases of historical ledgers, + move the value forward to one past the greatest ledger being deleted. + This minimizes fetching of ledgers that are in the process of being + deleted. Without online_delete or before online_delete is + executed, this value is always the minimum value persisted in the + ledger database, if any. @return The minimum ledger sequence to keep online based on the description above. If not set, then an unseated optional. diff --git a/src/ripple/app/misc/SHAMapStoreImp.cpp b/src/ripple/app/misc/SHAMapStoreImp.cpp index df898242d6a..65c614d881c 100644 --- a/src/ripple/app/misc/SHAMapStoreImp.cpp +++ b/src/ripple/app/misc/SHAMapStoreImp.cpp @@ -333,12 +333,6 @@ SHAMapStoreImp::run() if (advisoryDelete_) canDelete_ = state_db_.getCanDelete(); - // Don't acquire ledgers from the network older than - // the earliest persisted, if any. - auto const minSql = app_.getLedgerMaster().minSqlSeq(); - if (minSql.has_value()) - minimumOnline_ = *minSql; - while (true) { healthy_ = true;