Struct bitcoin::network::message_blockdata::GetBlocksMessage [−][src]
pub struct GetBlocksMessage {
pub version: u32,
pub locator_hashes: Vec<BlockHash>,
pub stop_hash: BlockHash,
}
Expand description
The getblocks
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 block to stop at, or zero to just fetch the maximum 500 blocks
Implementations
Trait Implementations
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GetBlocksMessage
impl Send for GetBlocksMessage
impl Sync for GetBlocksMessage
impl Unpin for GetBlocksMessage
impl UnwindSafe for GetBlocksMessage
Blanket Implementations
Mutably borrows from an owned value. Read more