Struct bitcoin::blockdata::blockchain::BlockchainNode
[−]
[src]
pub struct BlockchainNode { pub block: Block, pub total_work: Uint256, pub required_difficulty: Uint256, pub height: u32, pub has_txdata: bool, // some fields omitted }
A link in the blockchain
Fields
block: Block
The actual block
total_work: Uint256
Total work from genesis to this point
required_difficulty: Uint256
Expected value of block.header.bits
for this block; only changes every
blockdata::constants::DIFFCHANGE_INTERVAL;
blocks
height: u32
Height above genesis
has_txdata: bool
Whether the transaction data is stored
Trait Implementations
impl<S: SimpleEncoder> ConsensusEncodable<S> for BlockchainNode
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockchainNode
[src]
fn consensus_decode(d: &mut D) -> Result<BlockchainNode, D::Error>
Decode an object with a well-defined format
impl BitcoinHash for BlockchainNode
[src]
fn bitcoin_hash(&self) -> Sha256dHash
Produces a Sha256dHash which can be used to refer to the object