CatapultServer
v0.5.0.1 (Elephant)
|
model::ChainScoreSupplier ChainScoreSupplier
Definition: SyncSourceService.cpp:40
Node configuration settings.
Definition: NodeConfiguration.h:33
void RegisterPushBlockHandler(ionet::ServerPacketHandlers &handlers, const model::TransactionRegistry ®istry, const BlockRangeHandler &blockRangeHandler)
Definition: ChainHandlers.cpp:33
void RegisterBlockHashesHandler(ionet::ServerPacketHandlers &handlers, const io::BlockStorageCache &storage, uint32_t maxHashes)
Registers a block hashes handler in handlers that responds with at most maxHashes hashes in storage.
Definition: ChainHandlers.cpp:108
uint32_t bytes32() const
Returns the number of bytes as a uint32_t.
Definition: FileSize.h:72
supplier< ChainScore > ChainScoreSupplier
Prototype for a function that returns a chain score.
Definition: ChainScore.h:120
Requires basic range consumers (and factories) to be registered.
void RegisterPullBlocksHandler(ionet::ServerPacketHandlers &handlers, const io::BlockStorageCache &storage, const PullBlocksHandlerConfiguration &config)
Definition: ChainHandlers.cpp:153
#define PLUGIN_API
Definition: plugins.h:30
BlockRangeConsumerFunc CreateBlockPushEntityCallback(const ServerHooks &hooks)
Creates a block push entity callback from hooks that only pushes when synced.
Definition: ServerHooksUtils.cpp:35
uint32_t MaxBlocksPerSyncAttempt
Maximum number of blocks per sync attempt.
Definition: NodeConfiguration.h:61
DECLARE_SERVICE_REGISTRAR() SyncSource()
Definition: SyncSourceService.cpp:94
def info(*args)
Definition: forwardsValidation.py:12
RangeHandler< model::Block > BlockRangeHandler
Prototype for a function that processes a range of blocks.
Definition: HandlerTypes.h:32
uint32_t MaxBlocks
Maximum blocks to return.
Definition: ChainHandlers.h:54
void RegisterChainInfoHandler(ionet::ServerPacketHandlers &handlers, const io::BlockStorageCache &storage, const model::ChainScoreSupplier &chainScoreSupplier)
Definition: ChainHandlers.cpp:79
void RegisterPullTransactionsHandler(ionet::ServerPacketHandlers &handlers, const UtRetriever &utRetriever)
Definition: TransactionHandlers.cpp:88
uint32_t MaxResponseBytes
Maximum response bytes.
Definition: ChainHandlers.h:57
handlers::BlockRangeHandler PushBlockCallback
Definition: SyncSourceService.cpp:39
handlers::UtRetriever UtRetriever
Definition: SyncSourceService.cpp:42
Definition: AddressExtractionExtension.cpp:28
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
void RegisterPullBlockHandler(ionet::ServerPacketHandlers &handlers, const io::BlockStorageCache &storage)
Registers a pull block handler in handlers that responds with a block in storage.
Definition: ChainHandlers.cpp:57
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
Configuration for pull blocks handler.
Definition: ChainHandlers.h:52
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: SyncSourceExtension.cpp:40
utils::FileSize MaxChainBytesPerSyncAttempt
Maximum chain bytes per sync attempt.
Definition: NodeConfiguration.h:64
handlers::PullBlocksHandlerConfiguration BlocksHandlerConfig
Definition: SyncSourceService.cpp:41
std::function< UnconfirmedTransactions(BlockFeeMultiplier, const utils::ShortHashesSet &)> UtRetriever
Prototype for a function that retrieves unconfirmed transactions given a set of short hashes.
Definition: TransactionHandlers.h:42