CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace cache {
31 SerializerHashedKeyEncoder<MosaicCacheDescriptor::Serializer>,
32 PatriciaTreeRdbDataSource,
Definition: MosaicBaseSets.h:47
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;})
MosaicCacheTypes::HeightGroupingTypes::BaseSetType HeightGrouping
Definition: MosaicBaseSets.h:62
void commit(TArgs &&... args)
Definition: BaseSet.h:114
bool hasPatriciaTreeSupport() const
Returns true if patricia tree support is enabled.
Definition: CacheDatabaseMixin.h:50
MosaicBaseSets(const CacheConfiguration &config)
Definition: MosaicBaseSets.h:53
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
std::shared_ptr< MosaicPatriciaTree::DeltaType > pPatriciaTree
Definition: MosaicBaseSets.h:44
constexpr size_t First_Optional_Property
Index of first optional property.
Definition: MosaicProperty.h:84
MosaicEntryPrimarySerializer Serializer
Definition: MosaicCacheTypes.h:63
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
Primary serializer for mosaic cache.
Definition: MosaicCacheSerializers.h:30
MosaicCacheTypes::PrimaryTypes::BaseSetType Primary
Definition: MosaicBaseSets.h:61
Mixin that owns a cache database.
Definition: CacheDatabaseMixin.h:30
uint32_t Value
Definition: BlockScorer.cpp:32
void commit()
Definition: MosaicBaseSets.h:78
MosaicCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType pHeightGrouping
Definition: MosaicBaseSets.h:43
tree::BasePatriciaTree< SerializerHashedKeyEncoder< MosaicCacheDescriptor::Serializer >, PatriciaTreeRdbDataSource, utils::BaseValueHasher< MosaicId > > BasicMosaicPatriciaTree
Definition: MosaicBaseSets.h:33
Hasher object for a base value.
Definition: Hashers.h:43
Definition: MosaicBaseSets.h:41
std::false_type IsOrderedSet
Indicates the set is not ordered.
Definition: MosaicBaseSets.h:50
Definition: MosaicBaseSets.h:35
std::shared_ptr< DeltaType > rebase()
Returns a delta based on the same original elements as this set.
Definition: BaseSet.h:95
CachePatriciaTree< MosaicPatriciaTree > PatriciaTree
Definition: MosaicBaseSets.h:63
CacheDatabase & database()
Gets the database.
Definition: CacheDatabaseMixin.h:55
Cache configuration.
Definition: CacheConfiguration.h:37
std::shared_ptr< BaseSetDeltaType > BaseSetDeltaPointerType
Base set delta pointer type.
Definition: CacheDescriptorAdapters.h:87
Definition: AddressExtractionExtension.cpp:28
MosaicCacheTypes::PrimaryTypes::BaseSetDeltaPointerType pPrimary
Definition: MosaicBaseSets.h:42
MosaicBaseSetDeltaPointers rebase()
Definition: MosaicBaseSets.h:66
MosaicBaseSetDeltaPointers rebaseDetached() const
Definition: MosaicBaseSets.h:70
void flush()
Flushes the database.
Definition: CacheDatabaseMixin.h:68
A wrapper around a patricia tree used by caches.
Definition: CachePatriciaTree.h:30