Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify inbound endpoints as soon as possible #2640

Merged
merged 9 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libraries/net/include/graphene/net/peer_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ namespace graphene { namespace net
fc::ip::address inbound_address;
uint16_t inbound_port = 0;
uint16_t outbound_port = 0;
/// The inbound endpoint of the remote peer
/// The inbound endpoint of the remote peer (our best guess)
fc::optional<fc::ip::endpoint> remote_inbound_endpoint;
/// Whether the inbound endpoint of the remote peer is verified
bool inbound_endpoint_verified = false;
/// Some nodes may be listening on multiple endpoints
fc::flat_set<fc::ip::endpoint> additional_inbound_endpoints;
/// Potential inbound endpoints of the peer
fc::flat_map<fc::ip::endpoint, firewalled_state> potential_inbound_endpoints;
/// @}

using item_to_time_map_type = std::unordered_map<item_id, fc::time_point>;
Expand Down
Loading