@@ -178,20 +178,6 @@ LedgerManagerImpl::setState(State s)
178
178
{
179
179
mApp .getCatchupManager ().logAndUpdateCatchupStatus (true );
180
180
}
181
-
182
- if (mState == LM_CATCHING_UP_STATE && !mStartCatchup )
183
- {
184
- mStartCatchup = std::make_unique<VirtualClock::time_point>(
185
- mApp .getClock ().now ());
186
- }
187
- else if (mState == LM_SYNCED_STATE && mStartCatchup )
188
- {
189
- std::chrono::nanoseconds duration =
190
- mApp .getClock ().now () - *mStartCatchup ;
191
- mCatchupDuration .Update (duration);
192
- CLOG_DEBUG (Perf, " Caught up to the network in {} seconds" ,
193
- std::chrono::duration<double >(duration).count ());
194
- }
195
181
}
196
182
}
197
183
@@ -398,30 +384,6 @@ LedgerManagerImpl::loadLastKnownLedger(bool restoreBucketlist)
398
384
}
399
385
}
400
386
401
- bool
402
- LedgerManagerImpl::rebuildingInMemoryState ()
403
- {
404
- return mRebuildInMemoryState ;
405
- }
406
-
407
- void
408
- LedgerManagerImpl::setupInMemoryStateRebuild ()
409
- {
410
- if (!mRebuildInMemoryState )
411
- {
412
- LedgerHeader lh;
413
- HistoryArchiveState has;
414
- auto & ps = mApp .getPersistentState ();
415
- ps.setState (PersistentState::kLastClosedLedger ,
416
- binToHex (xdrSha256 (lh)));
417
- ps.setState (PersistentState::kHistoryArchiveState , has.toString ());
418
- ps.setState (PersistentState::kLastSCPData , " " );
419
- ps.setState (PersistentState::kLastSCPDataXDR , " " );
420
- ps.setState (PersistentState::kLedgerUpgrades , " " );
421
- mRebuildInMemoryState = true ;
422
- }
423
- }
424
-
425
387
Database&
426
388
LedgerManagerImpl::getDatabase ()
427
389
{
0 commit comments