Struct bitcoin_peerman::PeerBlockInv
source · pub struct PeerBlockInv {
pub blocks_for_inv_relay: Vec<u256>,
pub blocks_for_headers_relay: Vec<u256>,
pub continuation_block: u256,
}Fields§
§blocks_for_inv_relay: Vec<u256>| List of blocks that we’ll announce via
| an inv message.
|
| There is no final sorting before sending,
| as they are always sent immediately
| and in the order requested.
|
|
blocks_for_headers_relay: Vec<u256>| Unfiltered list of blocks that we’d
| like to announce via a headers message.
| If we can’t announce via a headers
| message, we’ll fall back to announcing
| via inv.
|
|
continuation_block: u256| The final block hash that we sent in an
| inv message to this peer.
|
| When the peer requests this block, we
| send an inv message to trigger the
| peer to request the next sequence of
| block hashes.
|
| Most peers use headers-first syncing,
| which doesn’t use this mechanism
|
|
Auto Trait Implementations§
impl RefUnwindSafe for PeerBlockInv
impl Send for PeerBlockInv
impl Sync for PeerBlockInv
impl Unpin for PeerBlockInv
impl UnwindSafe for PeerBlockInv
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more