Initialize peer_information members (#1738)
* Initialize peer_information members * Initialize probable_rep_account in-class
This commit is contained in:
parent
83959bdcfc
commit
13f5ab9ba0
2 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,6 @@ endpoint (endpoint_a),
|
||||||
ip_address (endpoint_a.address ()),
|
ip_address (endpoint_a.address ()),
|
||||||
last_contact (std::chrono::steady_clock::now ()),
|
last_contact (std::chrono::steady_clock::now ()),
|
||||||
last_attempt (last_contact),
|
last_attempt (last_contact),
|
||||||
|
|
||||||
network_version (network_version_a),
|
network_version (network_version_a),
|
||||||
node_id (node_id_a)
|
node_id (node_id_a)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public:
|
||||||
std::chrono::steady_clock::time_point last_rep_request{ std::chrono::steady_clock::time_point () };
|
std::chrono::steady_clock::time_point last_rep_request{ std::chrono::steady_clock::time_point () };
|
||||||
std::chrono::steady_clock::time_point last_rep_response{ std::chrono::steady_clock::time_point () };
|
std::chrono::steady_clock::time_point last_rep_response{ std::chrono::steady_clock::time_point () };
|
||||||
nano::amount rep_weight{ 0 };
|
nano::amount rep_weight{ 0 };
|
||||||
nano::account probable_rep_account;
|
nano::account probable_rep_account{ 0 };
|
||||||
unsigned network_version{ nano::protocol_version };
|
unsigned network_version{ nano::protocol_version };
|
||||||
boost::optional<nano::account> node_id;
|
boost::optional<nano::account> node_id;
|
||||||
bool operator< (nano::peer_information const &) const;
|
bool operator< (nano::peer_information const &) const;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue