CatapultServer  v0.5.0.1 (Elephant)
MultisigBaseSets.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "MultisigCacheTypes.h"
28 
29 namespace catapult { namespace cache {
30 
31  using BasicMultisigPatriciaTree = tree::BasePatriciaTree<
32  SerializerHashedKeyEncoder<MultisigCacheDescriptor::Serializer>,
33  PatriciaTreeRdbDataSource,
35 
37  public:
40  };
41 
44 
46 
47  struct MultisigBaseSets : public MultisigSingleSetCacheTypesAdapter::BaseSets<MultisigBaseSetDeltaPointers> {
49  };
50 }}
catapult::validators::DEFINE_STATEFUL_VALIDATOR
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto &notification, 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;})
catapult::cache::SynchronizedCache< BasicMultisigCache >::CacheReadOnlyType
typename BasicMultisigCache ::CacheReadOnlyType CacheReadOnlyType
Definition: SynchronizedCache.h:207
CachePatriciaTree.h
MultisigCacheTypes.h
catapult::cache::MultisigBaseSetDeltaPointers
Definition: MultisigBaseSets.h:45
Validators.h
catapult::cache::MultisigEntryPrimarySerializer
Primary serializer for multisig cache.
Definition: MultisigCacheSerializers.h:29
ValidatorContext.h
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
catapult::tree::BasePatriciaTree
A base patricia tree.
Definition: BasePatriciaTree.h:30
MultisigCache.h
m_notification
const Notification & m_notification
Definition: MultisigAggregateSufficientCosignersValidator.cpp:128
m_notification
const Notification & m_notification
Definition: MultisigAggregateEligibleCosignersValidator.cpp:109
catapult::cache::MultisigBaseSets
Definition: MultisigBaseSets.h:47
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter
A cache types adapter for a cache composed of a single set and a patricia tree.
Definition: SingleSetCacheTypesAdapter.h:84
MultisigCacheSerializers.h
SingleSetCacheTypesAdapter.h
m_multisigCache
const cache::MultisigCache::CacheReadOnlyType & m_multisigCache
Definition: MultisigAggregateEligibleCosignersValidator.cpp:110
BasePatriciaTree.h
catapult::validators::@566::OperationType
OperationType
Definition: MultisigAggregateSufficientCosignersValidator.cpp:32
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter::BaseSetDeltaPointers
Wrapper around single delta set and patricia tree.
Definition: SingleSetCacheTypesAdapter.h:87
catapult::utils::KeySet
ArraySet< Key > KeySet
A key set.
Definition: ArraySet.h:64
MultisigEntityType.h
m_cosigners
utils::ArrayPointerFlagMap< Key > m_cosigners
Definition: MultisigAggregateEligibleCosignersValidator.cpp:111
catapult::cache::MultisigCacheDescriptor::Serializer
MultisigEntryPrimarySerializer Serializer
Definition: MultisigCacheTypes.h:60
catapult::model::EmbeddedTransaction
Binary layout for an embedded transaction (non-verifiable).
Definition: EmbeddedTransaction.h:38
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter::BaseSets
Wrapper around single set and patricia tree.
Definition: SingleSetCacheTypesAdapter.h:94
catapult::cache::MultisigPatriciaTree
Definition: MultisigBaseSets.h:36
catapult::validators::ValidationResult::Success
Validation succeeded.
PatriciaTreeEncoderAdapters.h
ModifyMultisigAccountTransaction.h
ArraySet.h
m_multisigCache
const cache::MultisigCache::CacheReadOnlyType & m_multisigCache
Definition: MultisigAggregateSufficientCosignersValidator.cpp:129
catapult::utils::KeyPointerSet
ArrayPointerSet< Key > KeyPointerSet
A key pointer set.
Definition: ArraySet.h:73
catapult
Definition: AddressExtractionExtension.cpp:28
m_cosigners
utils::KeyPointerSet m_cosigners
Definition: MultisigAggregateSufficientCosignersValidator.cpp:130
catapult::model::CosignatoryModificationType::Del
Remove cosignatory.
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
catapult::utils::ArrayHasher
Definition: Hashers.h:32
catapult::model::CosignatoryModificationType::Add
Add cosignatory.
catapult::cache::BasicMultisigPatriciaTree
tree::BasePatriciaTree< SerializerHashedKeyEncoder< MultisigCacheDescriptor::Serializer >, PatriciaTreeRdbDataSource, utils::ArrayHasher< Key > > BasicMultisigPatriciaTree
Definition: MultisigBaseSets.h:34
catapult::model::EntityBody::Type
EntityType Type
Entity type.
Definition: EntityBody.h:42