CatapultServer
v0.5.0.1 (Elephant)
|
Public Member Functions | |
template<typename TPublishFunc , typename TPublishEmbeddedFunc > | |
TransactionPluginT (TPublishFunc publishFunc, TPublishEmbeddedFunc publishEmbeddedFunc) | |
void | publish (const WeakEntityInfoT< Transaction > &transactionInfo, NotificationSubscriber &sub) const override |
Sends all notifications from transactionInfo to sub. More... | |
RawBuffer | dataBuffer (const Transaction &transaction) const override |
Extracts the primary data buffer from transaction that is used for signing and basic hashing. More... | |
std::vector< RawBuffer > | merkleSupplementaryBuffers (const Transaction &) const override |
bool | supportsTopLevel () const override |
true if this transaction type supports being embedded directly in blocks. More... | |
bool | supportsEmbedding () const override |
true if this transaction type supports being embedded in other transactions. More... | |
const EmbeddedTransactionPlugin & | embeddedPlugin () const override |
Gets the corresponding embedded plugin if supportsEmbedding() is true . More... | |
Public Member Functions inherited from catapult::model::TransactionPluginFactory< Options >::BasicTransactionPluginT< Transaction, TTransaction, TransactionPlugin > | |
BasicTransactionPluginT (const PublishFunc &publishFunc) | |
EntityType | type () const override |
TransactionAttributes | attributes () const override |
uint64_t | calculateRealSize (const Transaction &transaction) const override |
Public Member Functions inherited from catapult::model::TransactionPluginT< Transaction > | |
virtual | ~TransactionPluginT ()=default |
Private Types | |
using | BaseType = BasicTransactionPluginT< Transaction, TTransaction, TransactionPlugin > |
Private Attributes | |
std::unique_ptr< EmbeddedTransactionPlugin > | m_pEmbeddedTransactionPlugin |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::model::TransactionPluginFactory< Options >::BasicTransactionPluginT< Transaction, TTransaction, TransactionPlugin > | |
void | publishImpl (const Transaction &transaction, NotificationSubscriber &sub) const |
|
private |
|
inlineexplicit |
|
inlineoverridevirtual |
Extracts the primary data buffer from transaction that is used for signing and basic hashing.
Implements catapult::model::TransactionPlugin.
|
inlineoverridevirtual |
Gets the corresponding embedded plugin if supportsEmbedding() is true
.
Implements catapult::model::TransactionPlugin.
|
inlineoverridevirtual |
Extracts additional buffers from transaction that should be included in the merkle hash in addition to the primary data buffer.
Implements catapult::model::TransactionPlugin.
|
inlineoverridevirtual |
Sends all notifications from transactionInfo to sub.
Implements catapult::model::TransactionPlugin.
|
inlineoverridevirtual |
true
if this transaction type supports being embedded in other transactions.
Implements catapult::model::TransactionPlugin.
|
inlineoverridevirtual |
true
if this transaction type supports being embedded directly in blocks.
Implements catapult::model::TransactionPlugin.
|
private |