Struct near_chain::types::Tip [−][src]
pub struct Tip {
pub height: u64,
pub last_block_hash: CryptoHash,
pub prev_block_hash: CryptoHash,
pub epoch_id: EpochId,
pub next_epoch_id: EpochId,
}Expand description
The tip of a fork. A handle to the fork ancestry from its leaf in the blockchain tree. References the max height and the latest and previous blocks for convenience
Fields
height: u64Height of the tip (max height of the fork)
last_block_hash: CryptoHashLast block pushed to the fork
prev_block_hash: CryptoHashPrevious block
epoch_id: EpochIdCurrent epoch id. Used for getting validator info.
next_epoch_id: EpochIdNext epoch id.
Implementations
Creates a new tip based on provided header.
Trait Implementations
impl BorshDeserialize for Tip where
u64: BorshDeserialize,
CryptoHash: BorshDeserialize,
EpochId: BorshDeserialize,
impl BorshDeserialize for Tip where
u64: BorshDeserialize,
CryptoHash: BorshDeserialize,
EpochId: BorshDeserialize,
impl BorshSerialize for Tip where
u64: BorshSerialize,
CryptoHash: BorshSerialize,
EpochId: BorshSerialize,
impl BorshSerialize for Tip where
u64: BorshSerialize,
CryptoHash: BorshSerialize,
EpochId: BorshSerialize,
Auto Trait Implementations
impl RefUnwindSafe for Tip
impl UnwindSafe for Tip
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more