CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
class MemoryPtCacheProxy; } }
29 namespace catapult {
namespace partialtransaction {
consumer< CosignedTransactionInfos && > CosignedTransactionInfosConsumer
Function signature for consuming a vector of cosigned transaction infos.
Definition: PtTypes.h:36
consumer< model::AnnotatedEntityRange< TEntity > && > RangeHandler
A handler for processing an annotated entity range.
Definition: HandlerTypes.h:29
supplier< std::unique_ptr< cache::MemoryPtCacheProxy > > PtCacheSupplier
Partial transactions cache supplier.
Definition: PtBootstrapperService.h:76
handlers::RangeHandler< model::DetachedCosignature > m_cosignatureRangeConsumer
Definition: PtBootstrapperService.h:70
std::shared_ptr< T > UniqueToShared(std::unique_ptr< T > &&pointer)
Converts a unique pointer to a shared pointer of the same type.
Definition: MemoryUtils.h:47
First phase (no dependencies).
const TFunc & Require(const TFunc &func)
Returns func if and only if it is set.
Definition: BasicServerHooks.h:38
DECLARE_SERVICE_REGISTRAR() PtBootstrapper(const PtCacheSupplier &ptCacheSupplier)
Definition: PtBootstrapperService.cpp:93
PtCache & GetMemoryPtCache(const extensions::ServiceLocator &locator)
Gets the memory partial transactions cache stored in locator.
Definition: PtBootstrapperService.cpp:97
void SetOnce(TFunc &dest, const TFunc &source)
Sets dest to source if and only if dest is unset.
Definition: BasicServerHooks.h:29
std::shared_ptr< TService > service(const std::string &serviceName) const
Gets the service with serviceName.
Definition: ServiceLocator.h:74
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
A delegating proxy around a MemoryPtCache.
Definition: MemoryPtCache.h:97
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
const auto & cosignatureRangeConsumer() const
Gets the cosignature range consumer.
Definition: PtBootstrapperService.h:63
Transaction dependency was removed.
CosignedTransactionInfosConsumer m_cosignedTransactionInfosConsumer
Definition: PtBootstrapperService.h:68
void setCosignatureRangeConsumer(const handlers::RangeHandler< model::DetachedCosignature > &consumer)
Sets the cosignature range consumer.
Definition: PtBootstrapperService.h:47
def info(*args)
Definition: forwardsValidation.py:12
PtCacheSupplier m_ptCacheSupplier
Definition: PtBootstrapperService.cpp:89
RangeHandler< model::Transaction > TransactionRangeHandler
Prototype for a function that processes a range of transactions.
Definition: HandlerTypes.h:35
void setPtRangeConsumer(const handlers::TransactionRangeHandler &consumer)
Sets the partial transaction range consumer.
Definition: PtBootstrapperService.h:42
Hooks for the partial transactions subsystem.
Definition: PtBootstrapperService.h:34
handlers::TransactionRangeHandler m_ptRangeConsumer
Definition: PtBootstrapperService.h:69
const auto & cosignedTransactionInfosConsumer() const
Gets the cosigned transaction infos consumer.
Definition: PtBootstrapperService.h:53
Definition: AddressExtractionExtension.cpp:28
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
const auto & ptRangeConsumer() const
Gets the partial transaction range consumer.
Definition: PtBootstrapperService.h:58
void setCosignedTransactionInfosConsumer(const CosignedTransactionInfosConsumer &consumer)
Sets the cosigned transaction infos consumer.
Definition: PtBootstrapperService.h:37
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
A service locator for local node services.
Definition: ServiceLocator.h:33
PtServerHooks & GetPtServerHooks(const extensions::ServiceLocator &locator)
Gets the partial transactions server hooks stored in locator.
Definition: PtBootstrapperService.cpp:101