Bitcoin block.
More...
Definition at line 41 of file btcblock.hpp.
#include <btcblock.hpp>
|
static const std::string & | name () |
|
|
static const std::string | _name |
|
|
bool | operator== (const BtcBlock &a, const BtcBlock &b) |
|
bool | operator!= (const BtcBlock &a, const BtcBlock &b) |
|
bool | DeserializeFromRaw (ReadStream &stream, BtcBlock &block, ValidationState &state, const BtcBlock::hash_t &precalculatedHash) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | DeserializeFromVbkEncoding (ReadStream &stream, BtcBlock &block, ValidationState &state, const BtcBlock::hash_t &precalculatedHash) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
◆ addon_t
using altintegration::BtcBlock::addon_t = StoredBtcBlockAddon::addon_t |
◆ hash_t
◆ height_t
using altintegration::BtcBlock::height_t = int32_t |
◆ merkle_t
◆ nonce_t
using altintegration::BtcBlock::nonce_t = uint32_t |
◆ prev_hash_t
◆ stored_addon_t
using altintegration::BtcBlock::stored_addon_t = StoredBtcBlockAddon |
◆ getDifficulty()
uint32_t altintegration::BtcBlock::getDifficulty |
( |
| ) |
const |
|
inline |
◆ getHash()
const hash_t & altintegration::BtcBlock::getHash |
( |
| ) |
const |
◆ getMerkleRoot()
uint256 altintegration::BtcBlock::getMerkleRoot |
( |
| ) |
const |
|
inline |
◆ getNonce()
uint32_t altintegration::BtcBlock::getNonce |
( |
| ) |
const |
|
inline |
◆ getPreviousBlock()
uint256 altintegration::BtcBlock::getPreviousBlock |
( |
| ) |
const |
|
inline |
◆ getTimestamp()
uint32_t altintegration::BtcBlock::getTimestamp |
( |
| ) |
const |
|
inline |
◆ getVersion()
int32_t altintegration::BtcBlock::getVersion |
( |
| ) |
const |
|
inline |
◆ invalidateHash()
void altintegration::BtcBlock::invalidateHash |
( |
| ) |
const |
|
inlineprotected |
◆ name()
static const std::string & altintegration::BtcBlock::name |
( |
| ) |
|
|
inlinestatic |
◆ toRaw()
void altintegration::BtcBlock::toRaw |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ toVbkEncoding()
void altintegration::BtcBlock::toVbkEncoding |
( |
WriteStream & |
stream | ) |
const |
- Parameters
-
stream | data stream to write into |
◆ operator!=
Definition at line 83 of file btcblock.hpp.
83 {
84 return !(a == b);
85 }
◆ operator==
Definition at line 72 of file btcblock.hpp.
72 {
73
74 return a.bits == b.bits &&
75 a.version == b.version &&
76 a.timestamp == b.timestamp &&
77 a.nonce == b.nonce &&
78 a.merkleRoot == b.merkleRoot &&
79 a.previousBlock == b.previousBlock;
80
81 }
◆ _name
const std::string altintegration::BtcBlock::_name |
|
staticprotected |
◆ bits
uint32_t altintegration::BtcBlock::bits = 0 |
|
protected |
◆ hash_
hash_t altintegration::BtcBlock::hash_ |
|
mutableprotected |
◆ merkleRoot
uint256 altintegration::BtcBlock::merkleRoot {} |
|
protected |
◆ nonce
uint32_t altintegration::BtcBlock::nonce = 0 |
|
protected |
◆ previousBlock
uint256 altintegration::BtcBlock::previousBlock {} |
|
protected |
◆ timestamp
uint32_t altintegration::BtcBlock::timestamp = 0 |
|
protected |
◆ version
int32_t altintegration::BtcBlock::version = 0 |
|
protected |
The documentation for this struct was generated from the following file: