Represents a view on Altchain block - i.e.
More...
contains partial info, only required for POP.
Definition at line 29 of file altblock.hpp.
#include <altblock.hpp>
◆ addon_t
using altintegration::AltBlock::addon_t = StoredAltBlockAddon::addon_t |
◆ hash_t
using altintegration::AltBlock::hash_t = std::vector<uint8_t> |
◆ height_t
using altintegration::AltBlock::height_t = int32_t |
◆ prev_hash_t
using altintegration::AltBlock::prev_hash_t = std::vector<uint8_t> |
◆ stored_addon_t
using altintegration::AltBlock::stored_addon_t = StoredAltBlockAddon |
◆ getDifficulty()
uint32_t altintegration::AltBlock::getDifficulty |
( |
| ) |
const |
|
inline |
◆ getHash()
const hash_t & altintegration::AltBlock::getHash |
( |
| ) |
const |
- Returns
- hash of ALT block.
◆ getHeight()
height_t altintegration::AltBlock::getHeight |
( |
| ) |
const |
|
inline |
◆ getPreviousBlock()
hash_t altintegration::AltBlock::getPreviousBlock |
( |
| ) |
const |
|
inline |
Definition at line 75 of file altblock.hpp.
75{ return previousBlock; }
◆ getTimestamp()
uint32_t altintegration::AltBlock::getTimestamp |
( |
| ) |
const |
|
inline |
◆ toPrettyString()
std::string altintegration::AltBlock::toPrettyString |
( |
| ) |
const |
◆ toRaw() [1/2]
std::vector< uint8_t > altintegration::AltBlock::toRaw |
( |
| ) |
const |
- Returns
- string represantation of the data
◆ toRaw() [2/2]
void altintegration::AltBlock::toRaw |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ hash
hash_t altintegration::AltBlock::hash {} |
◆ height
height_t altintegration::AltBlock::height {} |
◆ previousBlock
hash_t altintegration::AltBlock::previousBlock {} |
◆ timestamp
uint32_t altintegration::AltBlock::timestamp {} |
The documentation for this class was generated from the following file: