CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace utils {
class ConfigurationBag; } }
28 namespace catapult {
namespace config {
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
#define LOAD_PROPERTY(NAME)
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
static HashLockConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads hash lock configuration from bag.
Definition: HashLockConfiguration.cpp:31
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
A simple bag of properties.
Definition: ConfigurationBag.h:57
static HashLockConfiguration Uninitialized()
Creates an uninitialized hash lock configuration.
Definition: HashLockConfiguration.cpp:27
Represents a block duration.
Definition: BlockSpan.h:28
Hash lock plugin configuration settings.
Definition: HashLockConfiguration.h:31
HashLockConfiguration()=default
utils::BlockSpan MaxHashLockDuration
Maximum number of blocks for which a hash lock can exist.
Definition: HashLockConfiguration.h:37
Definition: AddressExtractionExtension.cpp:28
Amount LockedFundsPerAggregate
Amount that has to be locked per aggregate in partial cache.
Definition: HashLockConfiguration.h:34