CatapultServer
v0.5.0.1 (Elephant)
NamespaceLifetimeConstraints.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
NamespaceConstants.h
"
23
24
namespace
catapult
{
namespace
model {
25
27
struct
NamespaceLifetimeConstraints
{
28
public
:
30
constexpr
NamespaceLifetimeConstraints
(
BlockDuration
maxDuration,
BlockDuration
gracePeriodDuration)
31
:
MaxNamespaceDuration
(maxDuration.unwrap() + gracePeriodDuration.unwrap())
32
{}
33
34
public
:
36
BlockDuration
MaxNamespaceDuration
;
37
};
38
}}
NamespaceConstants.h
catapult::utils::BaseValue< uint64_t, BlockDuration_tag >
catapult::model::NamespaceLifetimeConstraints
Constraints for a namespace's lifetime.
Definition:
NamespaceLifetimeConstraints.h:27
catapult::model::NamespaceLifetimeConstraints::NamespaceLifetimeConstraints
constexpr NamespaceLifetimeConstraints(BlockDuration maxDuration, BlockDuration gracePeriodDuration)
Creates constraints around maxDuration and gracePeriodDuration.
Definition:
NamespaceLifetimeConstraints.h:30
catapult::model::NamespaceLifetimeConstraints::MaxNamespaceDuration
BlockDuration MaxNamespaceDuration
Maximum lifetime a namespace may have including the grace period.
Definition:
NamespaceLifetimeConstraints.h:36
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult-server
plugins
txes
namespace
src
model
NamespaceLifetimeConstraints.h
Generated by
1.8.16