CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace cache {
31 SerializerHashedKeyEncoder<RootNamespaceHistoryPatriciaTreeSerializer>,
32 PatriciaTreeRdbDataSource,
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
Definition: NamespaceBaseSets.h:41
void commit(TArgs &&... args)
Definition: BaseSet.h:114
bool hasPatriciaTreeSupport() const
Returns true if patricia tree support is enabled.
Definition: CacheDatabaseMixin.h:50
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
A base patricia tree.
Definition: BasePatriciaTree.h:30
static deltaset::ConditionalContainerMode GetContainerMode(const CacheConfiguration &config)
Gets the container mode specified by config.
Definition: CacheDatabaseMixin.h:61
std::shared_ptr< DeltaType > rebaseDetached() const
Definition: BaseSet.h:106
Mixin that owns a cache database.
Definition: CacheDatabaseMixin.h:30
constexpr BlockDuration Eternal_Artifact_Duration(0)
Duration of eternal artifact.
Definition: NamespaceBaseSets.h:48
std::shared_ptr< NamespacePatriciaTree::DeltaType > pPatriciaTree
Definition: NamespaceBaseSets.h:45
CachePatriciaTree< NamespacePatriciaTree > PatriciaTree
Definition: NamespaceBaseSets.h:66
NamespaceBaseSets(const CacheConfiguration &config)
Definition: NamespaceBaseSets.h:54
Hasher object for a base value.
Definition: Hashers.h:43
NamespaceBaseSetDeltaPointers rebase()
Definition: NamespaceBaseSets.h:69
NamespaceCacheTypes::FlatMapTypes::BaseSetType FlatMap
Definition: NamespaceBaseSets.h:64
NamespaceCacheTypes::PrimaryTypes::BaseSetDeltaPointerType pPrimary
Definition: NamespaceBaseSets.h:42
std::false_type IsOrderedSet
Indicates the set is not ordered.
Definition: NamespaceBaseSets.h:51
Definition: NamespaceBaseSets.h:35
NamespaceBaseSetDeltaPointers rebaseDetached() const
Definition: NamespaceBaseSets.h:73
std::shared_ptr< DeltaType > rebase()
Returns a delta based on the same original elements as this set.
Definition: BaseSet.h:95
CacheDatabase & database()
Gets the database.
Definition: CacheDatabaseMixin.h:55
Cache configuration.
Definition: CacheConfiguration.h:37
void commit()
Definition: NamespaceBaseSets.h:82
std::shared_ptr< BaseSetDeltaType > BaseSetDeltaPointerType
Base set delta pointer type.
Definition: CacheDescriptorAdapters.h:87
Definition: AddressExtractionExtension.cpp:28
NamespaceCacheTypes::HeightGroupingTypes::BaseSetType HeightGrouping
Definition: NamespaceBaseSets.h:65
Definition: NamespaceCacheSerializers.h:36
NamespaceCacheTypes::PrimaryTypes::BaseSetType Primary
Definition: NamespaceBaseSets.h:63
void flush()
Flushes the database.
Definition: CacheDatabaseMixin.h:68
NamespaceCacheTypes::FlatMapTypes::BaseSetDeltaPointerType pFlatMap
Definition: NamespaceBaseSets.h:43
tree::BasePatriciaTree< SerializerHashedKeyEncoder< RootNamespaceHistoryPatriciaTreeSerializer >, PatriciaTreeRdbDataSource, utils::BaseValueHasher< NamespaceId > > BasicNamespacePatriciaTree
Definition: NamespaceBaseSets.h:33
A wrapper around a patricia tree used by caches.
Definition: CachePatriciaTree.h:30
NamespaceCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType pHeightGrouping
Definition: NamespaceBaseSets.h:44