Struct bitcoin::network::message_blockdata::GetBlocksMessage [−][src]
pub struct GetBlocksMessage {
pub version: u32,
pub locator_hashes: Vec<BlockHash>,
pub stop_hash: BlockHash,
}The getblocks message
Fields
version: u32The 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: BlockHashReferences the block to stop at, or zero to just fetch the maximum 500 blocks
Implementations
impl GetBlocksMessage[src]
impl GetBlocksMessage[src]Trait Implementations
impl Clone for GetBlocksMessage[src]
impl Clone for GetBlocksMessage[src]fn clone(&self) -> GetBlocksMessage[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Decodable for GetBlocksMessage[src]
impl Decodable for GetBlocksMessage[src]fn consensus_decode<D: Read>(d: D) -> Result<GetBlocksMessage, Error>[src]
impl Encodable for GetBlocksMessage[src]
impl Encodable for GetBlocksMessage[src]impl PartialEq<GetBlocksMessage> for GetBlocksMessage[src]
impl PartialEq<GetBlocksMessage> for GetBlocksMessage[src]