CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 class AccountStateCacheView;
33 namespace catapult {
namespace timesync {
Importance m_totalChainImportance
Definition: TimeSynchronizer.h:65
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
uint64_t ValueType
Raw value type.
Definition: BaseValue.h:33
A time synchronizer that synchronizes local time with the network.
Definition: TimeSynchronizer.h:36
def warning(*args)
Definition: colorPrint.py:10
int64_t m_warningThresholdMillis
Definition: TimeSynchronizer.h:66
constexpr double Coupling_Minimum
Minimum value for the coupling of clocks.
Definition: extensions/timesync/src/constants.h:30
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
utils::BaseValue< int64_t, NodeAge_tag > NodeAge
Definition: extensions/timesync/src/types.h:32
auto Sum(const TContainer &container, TFunction accessor)
Definition: Functional.h:39
Aggregate synchronization filter.
Definition: AggregateSynchronizationFilter.h:29
Level for logging trace events.
constexpr double Coupling_Start
Start value for the coupling of clocks.
Definition: extensions/timesync/src/constants.h:27
constexpr int64_t Warning_Threshold_Millis
Minimum offset from remote to local node to trigger logging a warning.
Definition: extensions/timesync/src/constants.h:47
LogLevel
Catapult log levels.
Definition: Logging.h:36
std::set< TimeSynchronizationSample > TimeSynchronizationSamples
A set of time synchronization samples.
Definition: TimeSynchronizationSample.h:83
constexpr double Coupling_Decay_Strength
Value that indicates the speed of the coupling decay.
Definition: extensions/timesync/src/constants.h:36
TimeSynchronizer(const filters::AggregateSynchronizationFilter &filter, Importance totalChainImportance, int64_t warningThresholdMillis=Warning_Threshold_Millis)
Creates a time synchronizer around filter, totalChainImportance and warningThresholdMillis.
Definition: TimeSynchronizer.cpp:42
filters::AggregateSynchronizationFilter m_filter
Definition: TimeSynchronizer.h:64
#define CATAPULT_LOG_LEVEL(LEVEL)
Writes a log entry to the default logger with LEVEL severity.
Definition: Logging.h:336
TimeOffset calculateTimeOffset(const cache::AccountStateCacheView &accountStateCacheView, Height height, TimeSynchronizationSamples &&samples, NodeAge nodeAge)
Calculates a time offset from samples using accountStateCacheView, height and nodeAge.
Definition: TimeSynchronizer.cpp:51
const TView::ReadOnlyView & asReadOnly() const
Returns a read-only view of this view.
Definition: ReadOnlyViewSupplier.h:46
constexpr int64_t Start_Decay_After_Round
Value that indicates after which round the decay starts.
Definition: filter_constants.h:34
utils::BaseValue< int64_t, TimeOffset_tag > TimeOffset
Definition: extensions/timesync/src/types.h:28
Definition: AddressExtractionExtension.cpp:28
Importance::ValueType sumImportances(const cache::ImportanceView &importanceView, Height height, const TimeSynchronizationSamples &samples)
Definition: TimeSynchronizer.cpp:77
constexpr utils::LogLevel MapToLogLevel(ValidationResult result)
Maps validation result to an appropriate logging level.
Definition: ValidationResult.h:100
View on top of the account state cache.
Definition: AccountStateCacheView.h:110
double sumScaledOffsets(const cache::ImportanceView &importanceView, Height height, const TimeSynchronizationSamples &samples, double scaling)
Definition: TimeSynchronizer.cpp:86
Level for logging warning events.
A view on top of an account state cache for retrieving importances.
Definition: ImportanceView.h:29
Importance getAccountImportanceOrDefault(const Key &publicKey, Height height) const
Gets the importance for publicKey at height or a default importance if no importance is set.
Definition: ImportanceView.cpp:76
const model::AddressSet & highValueAddresses() const
Gets all high value addresses.
Definition: AccountStateCacheView.cpp:73