Struct bitcoin::network::message_blockdata::GetHeadersMessage [−][src]
pub struct GetHeadersMessage {
pub version: u32,
pub locator_hashes: Vec<BlockHash>,
pub stop_hash: BlockHash,
}
Expand description
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
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 GetHeadersMessage
impl Send for GetHeadersMessage
impl Sync for GetHeadersMessage
impl Unpin for GetHeadersMessage
impl UnwindSafe for GetHeadersMessage
Blanket Implementations
Mutably borrows from an owned value. Read more