Struct bitcoin::network::message_network::VersionMessage [] [src]

pub struct VersionMessage {
    pub version: u32,
    pub services: u64,
    pub timestamp: i64,
    pub receiver: Address,
    pub sender: Address,
    pub nonce: u64,
    pub user_agent: String,
    pub start_height: i32,
    pub relay: bool,
}

Some simple messages The version message

Fields

The P2P network protocol version

A bitmask describing the services supported by this node

The time at which the version message was sent

The network address of the peer receiving the message

The network address of the peer sending the message

A random nonce used to detect loops in the network

A string describing the peer's software

The height of the maxmimum-work blockchain that the peer is aware of

Whether the receiving peer should relay messages to the sender; used if the sender is bandwidth-limited and would like to support bloom filtering. Defaults to true.

Methods

impl VersionMessage
[src]

Constructs a new version message

Trait Implementations

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

impl Clone for VersionMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for VersionMessage
[src]

Formats the value using the given formatter.

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

Encode an object with a well-defined format

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

Decode an object with a well-defined format