Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/node.h
Show All 16 Lines | |||||
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>; | using TimePoint = std::chrono::time_point<std::chrono::steady_clock>; | ||||
namespace avalanche { | namespace avalanche { | ||||
struct Node { | struct Node { | ||||
NodeId nodeid; | NodeId nodeid; | ||||
PeerId peerid; | PeerId peerid; | ||||
TimePoint nextRequestTime; | TimePoint nextRequestTime; | ||||
CPubKey pubkey; | |||||
Node(NodeId nodeid_, PeerId peerid_, CPubKey pubkey_) | Node(NodeId nodeid_, PeerId peerid_) | ||||
: nodeid(nodeid_), peerid(peerid_), | : nodeid(nodeid_), peerid(peerid_), | ||||
nextRequestTime(std::chrono::steady_clock::now()), | nextRequestTime(std::chrono::steady_clock::now()) {} | ||||
pubkey(std::move(pubkey_)) {} | |||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_NODE_H | #endif // BITCOIN_AVALANCHE_NODE_H |