CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace model {
51 return transaction.Size <=
sizeof(T) + transaction.PayloadSize
53 : transaction.ToBytePointer() +
sizeof(T) + transaction.PayloadSize;
58 return transaction.Size <=
sizeof(T) + transaction.PayloadSize
60 : (transaction.Size -
sizeof(T) - transaction.PayloadSize) /
sizeof(
Cosignature);
96 bool IsSizeValid(
const AggregateTransaction& aggregate,
const TransactionRegistry& registry);
auto Transactions(EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw)
Definition: TransactionContainer.h:37
A cosignature.
Definition: Cosignature.h:29
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def warning(*args)
Definition: colorPrint.py:10
size_t GetTransactionPayloadSize(const AggregateTransactionHeader &header)
Gets the number of bytes containing transaction data according to header.
Definition: AggregateTransaction.cpp:25
Cosignature * CosignaturesPtr()
Definition: AggregateTransaction.h:72
static size_t CosignaturesCountT(T &transaction)
Definition: AggregateTransaction.h:57
static auto * CosignaturesPtrT(T &transaction)
Definition: AggregateTransaction.h:50
bool IsSizeValid(const AggregateTransaction &aggregate, const TransactionRegistry ®istry)
Definition: AggregateTransaction.cpp:38
Definition: TransactionContainer.h:34
#define DEFINE_TRANSACTION_CONSTANTS(TYPE, VERSION)
Defines constants for a transaction with TYPE and VERSION.
Definition: Transaction.h:50
Do not throw when an iteration error is encountered (but error flag will still be set).
Definition: AddressExtractionExtension.cpp:28
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
size_t CosignaturesCount()
Definition: AggregateTransaction.h:84
const Cosignature * CosignaturesPtr() const
Definition: AggregateTransaction.h:66
size_t CosignaturesCount() const
Definition: AggregateTransaction.h:78
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33
Binary layout for an aggregate transaction.
Definition: AggregateTransaction.h:47
Binary layout for a transaction.
Definition: Transaction.h:32