Struct ethcore_light::net::Announcement [] [src]

pub struct Announcement {
    pub head_hash: H256,
    pub head_num: u64,
    pub head_td: U256,
    pub reorg_depth: u64,
    pub serve_headers: bool,
    pub serve_state_since: Option<u64>,
    pub serve_chain_since: Option<u64>,
    pub tx_relay: bool,
}

An announcement of new chain head or capabilities made by a peer.

Fields

Hash of the best block.

Number of the best block.

Head total difficulty

reorg depth to common ancestor of last announced head.

optional new header-serving capability. false means "no change"

optional new state-serving capability

optional new chain-serving capability

optional new transaction-relay capability. false means "no change"

Trait Implementations

impl Debug for Announcement
[src]

Formats the value using the given formatter.

impl Clone for Announcement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Announcement
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Announcement
[src]