pub trait BlockLike {
fn hash(&self) -> H256;
fn raw_hash(&self) -> H256;
fn parent_hash(&self) -> H256;
fn difficulty(&self) -> U256;
}
Expand description
Something which can produce a hash and a parent hash.
Required methods
Get a raw hash of this item - i.e. the hash of the RLP representation.
fn parent_hash(&self) -> H256
fn parent_hash(&self) -> H256
Get the hash of this item’s parent.
fn difficulty(&self) -> U256
fn difficulty(&self) -> U256
Get the difficulty of this item.