Struct blocks_iterator::BlockExtra [−][src]
pub struct BlockExtra { pub block: Block, pub block_hash: BlockHash, pub size: u32, pub next: Vec<BlockHash>, pub height: u32, pub outpoint_values: HashMap<OutPoint, TxOut>, pub tx_hashes: HashSet<Txid>, }
The bitcoin block and additional metadata returned by the iterate method
Fields
block: Block
The bitcoin block
block_hash: BlockHash
The bitcoin block hash, same as block.block_hash()
but result from hashing is cached
size: u32
The byte size of the block, as returned by in serialize(block).len()
next: Vec<BlockHash>
Hash of the blocks following this one, it’s a vec because during reordering they may be more than one because of reorgs, as a result from iterate, it’s just one.
height: u32
The height of the current block, number of blocks between this one and the genesis block
outpoint_values: HashMap<OutPoint, TxOut>
All the previous outputs of this block. Allowing to validate the script or computing the fee
Note that when configuration skip_script_pubkey
is true, the script is empty,
when skip_prevout
is true, this map is empty.
tx_hashes: HashSet<Txid>
Precomputed set of txid present in block
Implementations
impl BlockExtra
[src]
impl BlockExtra
[src]Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlockExtra
impl RefUnwindSafe for BlockExtra
impl Send for BlockExtra
impl Send for BlockExtra
impl Sync for BlockExtra
impl Sync for BlockExtra
impl Unpin for BlockExtra
impl Unpin for BlockExtra
impl UnwindSafe for BlockExtra
impl UnwindSafe for BlockExtra