Definition at line 47 of file block.hpp.
|
| Block (int32_t version, uint256 previousBlock, uint256 merkleRoot, uint32_t timestamp, uint32_t bits, uint32_t nonce) |
|
template<typename Stream , typename Operation > |
void | SerializationOp (Stream &s, Operation ser_action) |
|
| BtcBlock (int32_t version, uint256 previousBlock, uint256 merkleRoot, uint32_t timestamp, uint32_t bits, uint32_t nonce) |
|
void | toRaw (WriteStream &stream) const |
| Convert BtcBlock to data stream using BtcBlock basic byte format. More...
|
|
void | toVbkEncoding (WriteStream &stream) const |
| Convert BtcBlock to data stream using BtcBlock VBK byte format. More...
|
|
size_t | estimateSize () const |
|
hash_t | calculateHash () const |
|
const hash_t & | getHash () const |
| Calculate the hash of the btc block. More...
|
|
std::string | toPrettyString () const |
|
int32_t | getVersion () const |
|
uint256 | getPreviousBlock () const |
|
uint256 | getMerkleRoot () const |
|
uint32_t | getNonce () const |
|
uint32_t | getTimestamp () const |
|
uint32_t | getDifficulty () const |
|
void | setVersion (int32_t v) |
|
void | setPreviousBlock (const uint256 &prev) |
|
void | setMerkleRoot (const uint256 &mr) |
|
void | setDifficulty (uint32_t bits) |
|
void | setNonce (uint32_t nnc) |
|
void | setTimestamp (uint32_t ts) |
|
◆ Block()
altintegration::btc::Block::Block |
( |
int32_t |
version, |
|
|
uint256 |
previousBlock, |
|
|
uint256 |
merkleRoot, |
|
|
uint32_t |
timestamp, |
|
|
uint32_t |
bits, |
|
|
uint32_t |
nonce |
|
) |
| |
|
inline |
Definition at line 52 of file block.hpp.
58 : BlockHeader(version,
59 std::move(previousBlock),
60 std::move(merkleRoot),
61 timestamp,
62 bits,
63 nonce) {}
◆ SerializationOp()
template<typename Stream , typename Operation >
void altintegration::btc::Block::SerializationOp |
( |
Stream & |
s, |
|
|
Operation |
ser_action |
|
) |
| |
|
inline |
Definition at line 68 of file block.hpp.
68 {
69 READWRITEAS(BlockHeader, *this);
70 READWRITE(this->vtx);
71 }
◆ operator!=
bool operator!= |
( |
const Block & |
a, |
|
|
const Block & |
b |
|
) |
| |
|
friend |
◆ operator==
bool operator== |
( |
const Block & |
a, |
|
|
const Block & |
b |
|
) |
| |
|
friend |
Definition at line 73 of file block.hpp.
73 {
74 const BlockHeader& A = a;
75 const BlockHeader& B = b;
76 return A == B && a.vtx == b.vtx;
77 }
◆ ADD_SERIALIZE_METHODS
altintegration::btc::Block::ADD_SERIALIZE_METHODS |
◆ vtx
std::vector<Transaction> altintegration::btc::Block::vtx {} |
The documentation for this struct was generated from the following file: