BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::net::detail::prioritized_item_id Struct Reference

#include <node_impl.hxx>

Public Member Functions

 prioritized_item_id (const item_id &item, size_t sequence_number)
 
bool operator< (const prioritized_item_id &rhs) const
 

Public Attributes

item_id item
 
size_t sequence_number
 
fc::time_point timestamp
 the time we last heard about this item in an inventory message More...
 

Detailed Description

When requesting items from peers, we want to prioritize any blocks before transactions, but otherwise request items in the order we heard about them

Definition at line 239 of file node_impl.hxx.

Constructor & Destructor Documentation

◆ prioritized_item_id()

graphene::net::detail::prioritized_item_id::prioritized_item_id ( const item_id item,
size_t  sequence_number 
)
inline

Definition at line 245 of file node_impl.hxx.

Member Function Documentation

◆ operator<()

bool graphene::net::detail::prioritized_item_id::operator< ( const prioritized_item_id rhs) const
inline

Definition at line 250 of file node_impl.hxx.

Member Data Documentation

◆ item

item_id graphene::net::detail::prioritized_item_id::item

Definition at line 241 of file node_impl.hxx.

◆ sequence_number

size_t graphene::net::detail::prioritized_item_id::sequence_number

Definition at line 242 of file node_impl.hxx.

◆ timestamp

fc::time_point graphene::net::detail::prioritized_item_id::timestamp

the time we last heard about this item in an inventory message

Definition at line 243 of file node_impl.hxx.


The documentation for this struct was generated from the following file: