CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace config {
class CatapultConfiguration; }
27 namespace model {
struct BlockElement; }
30 namespace catapult {
namespace tools {
namespace nemgen {
bool ShouldEnableVerifiableReceipts
true if block chain should calculate receipts so that state changes are fully verifiable at each bloc...
Definition: BlockChainConfiguration.h:42
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
const model::BlockChainConfiguration BlockChain
Block chain configuration.
Definition: CatapultConfiguration.h:48
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
A notification observer to entity observer adapter.
Definition: NotificationObserverAdapter.h:30
const model::Block & Block
Block entity.
Definition: Elements.h:63
constexpr ValidationResult ValidateLessThanOrEqual(TValue value, TValue maxValue, ValidationResult failureResult)
Validates that value is less than or equal to maxValue and returns failureResult on failure.
Definition: ValidatorUtils.h:28
Hash256 CalculateMerkleHash(const BlockStatement &statement)
Calculates the merkle hash for statement.
Definition: BlockStatement.cpp:83
NamespaceType
Namespace types.
Definition: NamespaceTypes.h:27
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
Block independent mutable state passed to all observers.
Definition: ObserverContext.h:54
Collection of receipts scoped to a block.
Definition: BlockStatementBuilder.h:27
Stateful catapult information.
Definition: CatapultState.h:27
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
Definition: AddressExtractionExtension.cpp:28
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
void ExecuteBlock(const model::BlockElement &blockElement, const BlockExecutionContext &executionContext)
Executes blockElement using the specified execution context (executionContext).
Definition: BlockExecutor.cpp:45