Struct bitcoin::network::message_blockdata::GetBlocksMessage[][src]

pub struct GetBlocksMessage {
    pub version: u32,
    pub locator_hashes: Vec<Sha256dHash>,
    pub stop_hash: Sha256dHash,
}

The getblocks message

Fields

The protocol version

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.

References the block to stop at, or zero to just fetch the maximum 500 blocks

Methods

impl GetBlocksMessage
[src]

Construct a new getblocks message

Trait Implementations

impl PartialEq for GetBlocksMessage
[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 GetBlocksMessage
[src]

impl Clone for GetBlocksMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GetBlocksMessage
[src]

Formats the value using the given formatter. Read more

impl<S: SimpleEncoder> ConsensusEncodable<S> for GetBlocksMessage
[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for GetBlocksMessage
[src]

Decode an object with a well-defined format

Auto Trait Implementations