Refactor to fix levelization:

* Remove Application & Database dependency in PerfLog. Replace it with
  a callback passed into the constructor.
* Fixes the circular dependency between ripple/nodestore and ripple/basics
This commit is contained in:
Edward Hennis
2022-01-12 10:53:34 -05:00
committed by manojsdoshi
parent a529b218f3
commit 0623a40f02
7 changed files with 23 additions and 16 deletions

View File

@@ -1339,8 +1339,6 @@ ApplicationImp::setup()
{
// Fall back to syncing from the network, such as
// when there's no existing data.
if (startUp == Config::NETWORK && !config_->standalone())
m_networkOPs->setNeedNetworkLedger();
startGenesisLedger();
}
else

View File

@@ -17,8 +17,9 @@
*/
//==============================================================================
#include <ripple/perflog/impl/PerfLogImp.h>
#include <ripple/basics/BasicConfig.h>
#include <ripple/basics/impl/PerfLogImp.h>
#include <ripple/beast/core/CurrentThreadName.h>
#include <ripple/beast/utility/Journal.h>
#include <ripple/core/JobTypes.h>