CatapultServer
v0.5.0.1 (Elephant)
|
Classes | |
struct | DeceleratingTaskConfiguration |
Decelerating task configuration settings. More... | |
class | RollbackInfo |
Container for both committed and ignored rollback statistics. More... | |
class | RollbackStats |
Container for rollback statistics. More... | |
struct | SpamThrottleConfiguration |
Spam throttle configuration. More... | |
struct | TasksConfiguration |
Tasks configuration settings. More... | |
struct | UniformTaskConfiguration |
Uniform task configuration settings. More... | |
Enumerations | |
enum | RollbackResult { RollbackResult::Committed, RollbackResult::Ignored } |
Rollback results. More... | |
enum | RollbackCounterType { RollbackCounterType::All, RollbackCounterType::Recent, RollbackCounterType::Longest } |
Rollback counter types. More... | |
|
strong |
|
strong |
void catapult::sync::AddSupplementalDataResiliency | ( | consumers::BlockChainSyncHandlers & | syncHandlers, |
const config::CatapultDataDirectory & | dataDirectory, | ||
const cache::CatapultCache & | cache, | ||
const extensions::LocalNodeChainScore & | score | ||
) |
Updates syncHandlers to support supplemental data resiliency given dataDirectory, cache and score.
consumers::BlockChainSyncHandlers::CommitStepFunc catapult::sync::CreateCommitStepHandler | ( | const config::CatapultDataDirectory & | dataDirectory | ) |
Creates a commit step handler around dataDirectory.
chain::UtUpdater::Throttle catapult::sync::CreateTransactionSpamThrottle | ( | const SpamThrottleConfiguration & | config, |
const predicate< const model::Transaction & > & | isBonded | ||
) |
Creates a throttle using config to filter out transactions that are considered to be spam. isBonded indicates whether a transaction is bonded or not.
chain::UtUpdater::Throttle catapult::sync::CreateUtUpdaterThrottle | ( | const config::CatapultConfiguration & | config | ) |
Creates a ut updater throttle based on config.
DECLARE_SERVICE_REGISTRAR() catapult::sync::Dispatcher | ( | ) |
Creates a registrar for a dispatcher service.
std::shared_ptr< net::PacketWriters > catapult::sync::GetPacketWriters | ( | const extensions::ServiceLocator & | locator | ) |
Gets the packet writers service from locator.
DECLARE_SERVICE_REGISTRAR() catapult::sync::NetworkPacketWriters | ( | ) |
Creates a registrar for a packet writers service.
DECLARE_SERVICE_REGISTRAR() catapult::sync::Scheduler | ( | const TasksConfiguration & | config | ) |
Creates a registrar for a scheduler service around config
DECLARE_SERVICE_REGISTRAR() catapult::sync::Sync | ( | ) |
Creates a registrar for a sync service.
model::MatchingEntityPredicate catapult::sync::ToRequiresValidationPredicate | ( | const chain::KnownHashPredicate & | knownHashPredicate | ) |
Converts a known hash predicate (knownHashPredicate) to a requires validation predicate.