CatapultServer
v0.5.0.1 (Elephant)
|
Public Member Functions | |
constexpr | BlockDifficultyInfo () |
Creates a default block difficulty info. More... | |
constexpr | BlockDifficultyInfo (Height height) |
Creates a block difficulty info from a height. More... | |
constexpr | BlockDifficultyInfo (Height height, Timestamp timestamp, Difficulty difficulty) |
Creates a block difficulty info from a height, a timestamp and a difficulty. More... | |
constexpr bool | operator< (const BlockDifficultyInfo &rhs) const |
Returns true if this block difficulty info is less than rhs. More... | |
constexpr bool | operator== (const BlockDifficultyInfo &rhs) const |
Returns true if this block difficulty info is equal to rhs. More... | |
constexpr bool | operator!= (const BlockDifficultyInfo &rhs) const |
Returns true if this block difficulty info is not equal to rhs. More... | |
Public Attributes | |
Height | BlockHeight |
Block height. More... | |
Timestamp | BlockTimestamp |
Block timestamp. More... | |
Difficulty | BlockDifficulty |
Block difficulty. More... | |
Represents detailed information about a block difficulty including the block height and the block timestamp.
|
inlineconstexpr |
Creates a default block difficulty info.
|
inlineexplicitconstexpr |
Creates a block difficulty info from a height.
|
inlineexplicitconstexpr |
Creates a block difficulty info from a height, a timestamp and a difficulty.
|
inlineconstexpr |
Returns true
if this block difficulty info is not equal to rhs.
|
inlineconstexpr |
Returns true
if this block difficulty info is less than rhs.
|
inlineconstexpr |
Returns true
if this block difficulty info is equal to rhs.
Difficulty catapult::state::BlockDifficultyInfo::BlockDifficulty |
Block difficulty.
Height catapult::state::BlockDifficultyInfo::BlockHeight |
Block height.
Timestamp catapult::state::BlockDifficultyInfo::BlockTimestamp |
Block timestamp.