Struct bitcoin::network::message_blockdata::GetHeadersMessage [−][src]
pub struct GetHeadersMessage { pub version: u32, pub locator_hashes: Vec<BlockHash>, pub stop_hash: BlockHash, }
The getheaders
message
Fields
version: u32
The protocol version
locator_hashes: Vec<BlockHash>
Locator hashes — ordered newest to oldest. The remote peer will reply with its longest known chain, starting from a locator hash if possible and block 1 otherwise.
stop_hash: BlockHash
References the header to stop at, or zero to just fetch the maximum 2000 headers
Implementations
impl GetHeadersMessage
[src]
impl GetHeadersMessage
[src]Trait Implementations
impl Clone for GetHeadersMessage
[src]
impl Clone for GetHeadersMessage
[src]fn clone(&self) -> GetHeadersMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Decodable for GetHeadersMessage
[src]
impl Decodable for GetHeadersMessage
[src]fn consensus_decode<D: Read>(d: D) -> Result<GetHeadersMessage, Error>
[src]
impl Encodable for GetHeadersMessage
[src]
impl Encodable for GetHeadersMessage
[src]impl PartialEq<GetHeadersMessage> for GetHeadersMessage
[src]
impl PartialEq<GetHeadersMessage> for GetHeadersMessage
[src]