Veriblock block.
More...
Definition at line 32 of file vbkblock.hpp.
#include <vbkblock.hpp>
|
static const std::string & | name () |
|
◆ addon_t
using altintegration::VbkBlock::addon_t = StoredVbkBlockAddon::addon_t |
◆ hash_t
◆ height_t
using altintegration::VbkBlock::height_t = int32_t |
◆ id_t
◆ keystone_t
◆ merkle_t
◆ nonce_t
using altintegration::VbkBlock::nonce_t = int32_t |
◆ prev_hash_t
◆ protecting_block_t
◆ short_hash_t
◆ stored_addon_t
using altintegration::VbkBlock::stored_addon_t = StoredVbkBlockAddon |
◆ getDifficulty()
int32_t altintegration::VbkBlock::getDifficulty |
( |
| ) |
const |
|
inline |
◆ getHash()
const hash_t & altintegration::VbkBlock::getHash |
( |
| ) |
const |
◆ getHeight()
int32_t altintegration::VbkBlock::getHeight |
( |
| ) |
const |
|
inline |
◆ getId()
Definition at line 101 of file vbkblock.hpp.
short_hash_t getShortHash() const
Calculate the hash of the vbk block.
◆ getMerkleRoot()
uint128 altintegration::VbkBlock::getMerkleRoot |
( |
| ) |
const |
|
inline |
◆ getNonce()
uint64_t altintegration::VbkBlock::getNonce |
( |
| ) |
const |
|
inline |
◆ getPreviousBlock()
uint96 altintegration::VbkBlock::getPreviousBlock |
( |
| ) |
const |
|
inline |
◆ getPreviousKeystone()
keystone_t altintegration::VbkBlock::getPreviousKeystone |
( |
| ) |
const |
|
inline |
Definition at line 120 of file vbkblock.hpp.
120{ return previousKeystone; }
◆ getSecondPreviousKeystone()
keystone_t altintegration::VbkBlock::getSecondPreviousKeystone |
( |
| ) |
const |
|
inline |
Definition at line 121 of file vbkblock.hpp.
121 {
122 return secondPreviousKeystone;
123 }
◆ getShortHash()
short_hash_t altintegration::VbkBlock::getShortHash |
( |
| ) |
const |
◆ getTimestamp()
uint32_t altintegration::VbkBlock::getTimestamp |
( |
| ) |
const |
|
inline |
◆ getVersion()
int16_t altintegration::VbkBlock::getVersion |
( |
| ) |
const |
|
inline |
◆ name()
static const std::string & altintegration::VbkBlock::name |
( |
| ) |
|
|
inlinestatic |
◆ toRaw() [1/2]
std::vector< uint8_t > altintegration::VbkBlock::toRaw |
( |
| ) |
const |
- Returns
- string represantation of the data
◆ toRaw() [2/2]
void altintegration::VbkBlock::toRaw |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ toVbkEncoding() [1/2]
std::vector< uint8_t > altintegration::VbkBlock::toVbkEncoding |
( |
| ) |
const |
◆ toVbkEncoding() [2/2]
void altintegration::VbkBlock::toVbkEncoding |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ operator<
Definition at line 72 of file vbkblock.hpp.
72 {
73 return a.getHeight() < b.getHeight();
74 }
The documentation for this struct was generated from the following file: