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
head_hash: H256
Hash of the best block.
head_num: u64
Number of the best block.
head_td: U256
Head total difficulty
reorg_depth: u64
reorg depth to common ancestor of last announced head.
serve_headers: bool
optional new header-serving capability. false means "no change"
serve_state_since: Option<u64>
optional new state-serving capability
serve_chain_since: Option<u64>
optional new chain-serving capability
tx_relay: bool
optional new transaction-relay capability. false means "no change"
Trait Implementations
impl Debug for Announcement
[src]
impl Clone for Announcement
[src]
fn clone(&self) -> Announcement
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Announcement
[src]
fn eq(&self, __arg_0: &Announcement) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Announcement) -> bool
This method tests for !=
.