Beispiel #1
0
 InboundLedgersImp (clock_type& clock, Stoppable& parent,
                    beast::insight::Collector::ptr const& collector)
     : Stoppable ("InboundLedgers", parent)
     , m_clock (clock)
     , mRecentFailures ("LedgerAcquireRecentFailures",
         clock, 0, kReacquireIntervalSeconds)
     , mCounter(collector->make_counter("ledger_fetches"))
 {
 }
Beispiel #2
0
LedgerHistory::LedgerHistory (
    beast::insight::Collector::ptr const& collector)
    : collector_ (collector)
    , mismatch_counter_ (collector->make_counter ("ledger.history", "mismatch"))
    , m_ledgers_by_hash ("LedgerCache", CACHED_LEDGER_NUM, CACHED_LEDGER_AGE,
        get_seconds_clock (), deprecatedLogs().journal("TaggedCache"))
    , m_consensus_validated ("ConsensusValidated", 64, 300,
        get_seconds_clock (), deprecatedLogs().journal("TaggedCache"))
{
}
Beispiel #3
0
 InboundLedgersImp (Application& app, clock_type& clock, Stoppable& parent,
                    beast::insight::Collector::ptr const& collector)
     : Stoppable ("InboundLedgers", parent)
     , app_ (app)
     , fetchRate_(clock.now())
     , j_ (app.journal ("InboundLedger"))
     , m_clock (clock)
     , mRecentFailures (clock)
     , mCounter(collector->make_counter("ledger_fetches"))
 {
 }