CatapultServer
v0.5.0.1 (Elephant)
|
static EntityRange FromEntity(std::unique_ptr< TEntity > &&pEntity)
Creates an entity range around a single entity (pEntity).
Definition: EntityRange.h:292
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
Synchronized cache composed of namespace information.
Definition: NamespaceCache.h:71
def firstIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:144
const decltype(TaskOptions::HarvestingAllowed) m_harvestingAllowed
Definition: ScheduledHarvesterTask.h:69
def firstTestIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:271
def validateCrossIncludes(sortedIncludes, pathElements)
Definition: Rules.py:306
const cache::ReadOnlyCatapultCache & Cache
Catapult cache.
Definition: ValidatorContext.h:62
def firstTestIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:73
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
def namespaceCheck(nsUnified, fullPath)
Definition: Rules.py:115
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
const decltype(TaskOptions::RangeConsumer) m_rangeConsumer
Definition: ScheduledHarvesterTask.h:72
const TCache::CacheReadOnlyType & sub() const
Gets a specific sub cache read-only view.
Definition: ReadOnlyCatapultCache.h:35
#define MAKE_STATEFUL_VALIDATOR(NAME, HANDLER)
Definition: ValidatorTypes.h:123
def namespaceCheck(nsUnified, fullPath)
Definition: Rules.py:40
def _firstTestIncludeCheckForTestsFile(pathElements)
Definition: Rules.py:282
std::atomic_bool m_isAnyHarvestedBlockPending
Definition: ScheduledHarvesterTask.h:75
def namespaceCheck(nsUnified, fullPath)
Definition: Rules.py:214
constexpr BlockDuration Eternal_Artifact_Duration(0)
Duration of eternal artifact.
DECLARE_STATEFUL_VALIDATOR(Address, Notification)(model
Definition: AddressValidator.cpp:29
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
Class that lets a harvester create a block and supplies the block to a consumer.
Definition: ScheduledHarvesterTask.h:48
chain::TimeSupplier TimeSupplier
Supplies the current network time.
Definition: ScheduledHarvesterTask.h:41
Contextual information passed to stateful validators.
Definition: ValidatorContext.h:32
def firstIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:65
def getMajorComponentName(component)
Definition: Rules.py:18
def firstIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:252
for(const auto &name :reservedRootNamespaceNames) reservedRootIds.emplace(model return MAKE_STATELESS_VALIDATOR(NamespaceName,([maxNameSize, reservedRootIds](const auto ¬ification) { if(maxNameSize< notification.NameSize||!model::IsValidName(notification.NamePtr, notification.NameSize)) return Failure_Namespace_Invalid_Name;auto name=utils::RawString(reinterpret_cast< const char * >(notification.NamePtr), notification.NameSize);if(notification.NamespaceId !=model::GenerateNamespaceId(notification.ParentId, name)) return Failure_Namespace_Name_Id_Mismatch;auto namespaceId=Namespace_Base_Id==notification.ParentId ? notification.NamespaceId :notification.ParentId;if(reservedRootIds.cend() !=reservedRootIds.find(namespaceId)) return Failure_Namespace_Root_Name_Reserved;return ValidationResult::Success;}))
Definition: NamespaceNameValidator.cpp:36
const decltype(TaskOptions::LastBlockElementSupplier) m_lastBlockElementSupplier
Definition: ScheduledHarvesterTask.h:70
Options for the harvesting task.
Definition: ScheduledHarvesterTask.h:33
def info(*args)
Definition: forwardsValidation.py:12
supplier< std::shared_ptr< const model::BlockElement > > LastBlockElementSupplier
Supplies information about the last block of the chain.
Definition: ScheduledHarvesterTask.h:38
predicate HarvestingAllowed
Indicates if harvesting is allowed.
Definition: ScheduledHarvesterTask.h:35
const decltype(TaskOptions::TimeSupplier) m_timeSupplier
Definition: ScheduledHarvesterTask.h:71
consumer< model::BlockRange &&, const disruptor::ProcessingCompleteFunc & > RangeConsumer
Consumes a range consisting of the harvested block, usually delivers it to the disruptor queue.
Definition: ScheduledHarvesterTask.h:44
def checkCatapultTest(pathUnified, splittedPath)
Definition: Rules.py:28
def firstTestIncludeCheck(sortedIncludes, pathElements)
Definition: Rules.py:159
supplier< Timestamp > TimeSupplier
Supplies a timestamp.
Definition: ChainFunctions.h:39
DECLARE_STATELESS_VALIDATOR(MaxTransactions, Notification)(uint32_t maxTransactions)
Definition: MaxTransactionsValidator.cpp:27
std::unique_ptr< Harvester > m_pHarvester
Definition: ScheduledHarvesterTask.h:73
void harvest()
Definition: ScheduledHarvesterTask.cpp:26
Definition: AddressExtractionExtension.cpp:28
Notification of use of an account address.
Definition: Notifications.h:57
def validateCrossIncludes(sortedIncludes, pathElements)
Definition: Rules.py:186
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
ScheduledHarvesterTask(const ScheduledHarvesterTaskOptions &options, std::unique_ptr< Harvester > &&pHarvester)
Creates a scheduled harvesting task around options and a pHarvester.
Definition: ScheduledHarvesterTask.h:54
def validateCrossIncludes(sortedIncludes, pathElements)
Definition: Rules.py:94