1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
crate::ix!();
pub struct PeerBlockInv {
/**
| 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.
|
|
*/
pub blocks_for_inv_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`.
|
|
*/
pub blocks_for_headers_relay: Vec<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
|
|
*/
pub continuation_block: u256,
}