mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor View classes:
The View hierarchy of classes is reorganized to include new classes with member functions moved and renamed, to solve defects in the original design: OpenView accumulates raw state and tx changes and can be applied to the base. ApplyView accumulates changes for a single transaction, including metadata, and can be applied to an OpenView. The Sandbox allows changes with the option to apply or throw them out. The PaymentSandbox provides a sandbox with account credit deferral. Call sites are changed to use the class appropriate for the task.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <ripple/core/DatabaseCon.h>
|
||||
#include <ripple/app/ledger/AcceptedLedger.h>
|
||||
#include <ripple/app/ledger/InboundLedgers.h>
|
||||
#include <ripple/ledger/CachedSLEs.h>
|
||||
#include <ripple/basics/UptimeTimer.h>
|
||||
#include <ripple/nodestore/Database.h>
|
||||
|
||||
@@ -72,7 +73,7 @@ Json::Value doGetCounts (RPC::Context& context)
|
||||
|
||||
ret[jss::historical_perminute] = static_cast<int>(
|
||||
app.getInboundLedgers().fetchRate());
|
||||
ret[jss::SLE_hit_rate] = app.getSLECache ().getHitRate ();
|
||||
ret[jss::SLE_hit_rate] = app.cachedSLEs().rate();
|
||||
ret[jss::node_hit_rate] = app.getNodeStore ().getCacheHitRate ();
|
||||
ret[jss::ledger_hit_rate] = app.getLedgerMaster ().getCacheHitRate ();
|
||||
ret[jss::AL_hit_rate] = AcceptedLedger::getCacheHitRate ();
|
||||
|
||||
Reference in New Issue
Block a user