CatapultServer
v0.5.0.1 (Elephant)
|
Hooks that can be used to configure server behavior. More...
Public Member Functions | |
void | addNewBlockSink (const NewBlockSink &sink) |
Adds a new block sink. More... | |
void | addNewTransactionsSink (const SharedNewTransactionsSink &sink) |
Adds a new transactions sink. More... | |
void | addPacketPayloadSink (const PacketPayloadSink &sink) |
Adds a packet payload sink. More... | |
void | addTransactionsChangeHandler (const TransactionsChangeHandler &handler) |
Adds a transactions change handler. More... | |
void | addTransactionEventHandler (const TransactionEventHandler &handler) |
Adds a transaction event handler. More... | |
void | setBlockRangeConsumerFactory (const BlockRangeConsumerFactoryFunc &factory) |
Sets the factory for creating a BlockRangeConsumerFunc bound to an input source. More... | |
void | setCompletionAwareBlockRangeConsumerFactory (const CompletionAwareBlockRangeConsumerFactoryFunc &factory) |
Sets the factory for creating a CompletionAwareBlockRangeConsumerFunc bound to an input source. More... | |
void | setTransactionRangeConsumerFactory (const TransactionRangeConsumerFactoryFunc &factory) |
Sets the factory for creating a TransactionRangeConsumerFunc bound to an input source. More... | |
void | setRemoteChainHeightsRetriever (const RemoteChainHeightsRetriever &retriever) |
Sets the remote heights chain retriever. More... | |
void | setChainSyncedPredicate (const ChainSyncedPredicate &predicate) |
Sets the chain synced predicate. More... | |
void | addKnownHashPredicate (const KnownHashPredicate &predicate) |
Adds a known hash predicate. More... | |
auto | newBlockSink () const |
Gets the new block sink. More... | |
auto | newTransactionsSink () const |
Gets the new transactions sink. More... | |
auto | packetPayloadSink () const |
Gets the packet payload sink. More... | |
auto | transactionsChangeHandler () const |
Gets the transactions change handler. More... | |
auto | transactionEventHandler () const |
Gets the transaction event handler. More... | |
const auto & | blockRangeConsumerFactory () const |
Gets the factory for creating a BlockRangeConsumerFunc bound to an input source. More... | |
const auto & | completionAwareBlockRangeConsumerFactory () const |
Gets the factory for creating a CompletionAwareBlockRangeConsumerFunc bound to an input source. More... | |
const auto & | transactionRangeConsumerFactory () const |
Gets the factory for creating a TransactionRangeConsumerFunc bound to an input source. More... | |
const auto & | remoteChainHeightsRetriever () const |
Gets the remote chain heights retriever. More... | |
auto | chainSyncedPredicate () const |
Gets the chain synced predicate. More... | |
KnownHashPredicate | knownHashPredicate (const cache::MemoryUtCache &utCache) const |
Gets the known hash predicate augmented with a check in utCache. More... | |
Hooks that can be used to configure server behavior.
|
inline |
Adds a known hash predicate.
|
inline |
Adds a new block sink.
|
inline |
Adds a new transactions sink.
|
inline |
Adds a packet payload sink.
|
inline |
Adds a transaction event handler.
|
inline |
Adds a transactions change handler.
|
inline |
Gets the factory for creating a BlockRangeConsumerFunc bound to an input source.
|
inline |
Gets the chain synced predicate.
|
inline |
Gets the factory for creating a CompletionAwareBlockRangeConsumerFunc bound to an input source.
|
inline |
Gets the known hash predicate augmented with a check in utCache.
|
inline |
Gets the new block sink.
|
inline |
Gets the new transactions sink.
|
inline |
Gets the packet payload sink.
|
inline |
Gets the remote chain heights retriever.
|
inline |
Sets the factory for creating a BlockRangeConsumerFunc bound to an input source.
|
inline |
Sets the chain synced predicate.
|
inline |
Sets the factory for creating a CompletionAwareBlockRangeConsumerFunc bound to an input source.
|
inline |
Sets the remote heights chain retriever.
|
inline |
Sets the factory for creating a TransactionRangeConsumerFunc bound to an input source.
|
inline |
Gets the transaction event handler.
|
inline |
Gets the factory for creating a TransactionRangeConsumerFunc bound to an input source.
|
inline |
Gets the transactions change handler.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |