Skip to content

Commit

Permalink
Merge pull request #2640 from bitshares/p2p-inbound-verify
Browse files Browse the repository at this point in the history
Verify inbound endpoints as soon as possible
  • Loading branch information
abitmore authored Sep 16, 2022
2 parents b5eeae8 + c0174e8 commit 408153f
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 71 deletions.
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

0 comments on commit 408153f

Please sign in to comment.