pub struct Version {
pub version: u32,
pub services: u64,
pub timestamp: i64,
pub recv_addr: NodeAddr,
pub tx_addr: NodeAddr,
pub nonce: u64,
pub user_agent: String,
pub start_height: i32,
pub relay: bool,
}
Expand description
Version payload defining a node’s capabilities
Fields§
§version: u32
The protocol version being used by the node
services: u64
Bitfield of features to be enabled for this connection
timestamp: i64
Time since the Unix epoch in seconds
recv_addr: NodeAddr
Network address of the node receiving this message
tx_addr: NodeAddr
Network address of the node emitting this message
nonce: u64
A random nonce which can help a node detect a connection to itself
user_agent: String
User agent string
start_height: i32
Height of the transmiting node’s best block chain, or in the case of SPV wallets, block header chain
relay: bool
Whether the client wants to receive broadcast transactions before a filter is set
Implementations§
Trait Implementations§
Source§impl Serializable<Version> for Version
impl Serializable<Version> for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more