Simplify LedgerMaster:

- Eliminate `tune` member function and allow `LedgerHistory`
  to fully initialize itself.
This commit is contained in:
Nik Bougalis
2022-02-04 18:39:41 -08:00
committed by manojsdoshi
parent 6faaa91850
commit c7e6803956
8 changed files with 12 additions and 47 deletions

View File

@@ -962,13 +962,6 @@ public:
<< "' took " << elapsed.count() << " seconds.";
}
// tune caches
using namespace std::chrono;
m_ledgerMaster->tune(
config_->getValueFor(SizedItem::ledgerSize),
seconds{config_->getValueFor(SizedItem::ledgerAge)});
return true;
}