#include "block.hpp"

Public Types | |
| using | HashType = decltype(hash) |
| using | SignaturesType = decltype(sigs) |
| using | BlockHeightType = decltype(height) |
| using | TransactionsType = decltype(transactions) |
| using | RejectedTransactionsType = decltype(rejected_transactions_hashes) |
Public Member Functions | |
| bool | operator== (const Block &rhs) const |
| bool | operator!= (const Block &rhs) const |
Public Attributes | |
| hash256_t | hash {} |
| std::vector< Signature > | sigs |
| ts64_t | created_ts {} |
| uint64_t | height {} |
| hash256_t | prev_hash {} |
| uint16_t | txs_number {} |
| std::vector< Transaction > | transactions |
| std::vector< HashType > | rejected_transactions_hashes |
Block is Model-structure, that provides all block-related information Block can be divided into payload which contains all the data and signatures of this data.
| using iroha::model::Block::BlockHeightType = decltype(height) |
| using iroha::model::Block::HashType = decltype(hash) |
| using iroha::model::Block::RejectedTransactionsType = decltype(rejected_transactions_hashes) |
| using iroha::model::Block::SignaturesType = decltype(sigs) |
| using iroha::model::Block::TransactionsType = decltype(transactions) |
| bool iroha::model::Block::operator!= | ( | const Block & | rhs | ) | const |

| bool iroha::model::Block::operator== | ( | const Block & | rhs | ) | const |

| ts64_t iroha::model::Block::created_ts {} |
Timestamp of block creation(signing) part of PAYLOAD
| hash256_t iroha::model::Block::hash {} |
Calculated as hash(PAYLOAD field) NOT a part of payload
| uint64_t iroha::model::Block::height {} |
Block number in the ledger Height can be used as block_id part of PAYLOAD
| hash256_t iroha::model::Block::prev_hash {} |
Hash of a previous block in the ledger part of PAYLOAD
| std::vector<HashType> iroha::model::Block::rejected_transactions_hashes |
Attached rejected transactions' hashes part of PAYLOAD
| std::vector<Signature> iroha::model::Block::sigs |
List of signatures for signing the block NOT a part of PAYLOAD
| std::vector<Transaction> iroha::model::Block::transactions |
Attached transactions part of PAYLOAD
| uint16_t iroha::model::Block::txs_number {} |
Number of transactions in block body part of PAYLOAD