Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Use node_id for duplicate connection resolution 📦 #10786

Merged
merged 9 commits into from
Oct 6, 2021

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Oct 4, 2021

Change Description

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@heifner heifner changed the title Update last_handshake_recv before dup check 📦 Use node_id for duplicate connection resolution 📦 Oct 5, 2021
@heifner heifner marked this pull request as ready for review October 5, 2021 23:59
@heifner heifner requested a review from huangminghuang October 5, 2021 23:59
} else if (my_impl->p2p_address < msg.p2p_address) {
} else if (my_impl->node_id < msg.node_id) {
fc_dlog( logger, "not duplicate, my_impl->node_id '${lhs}' < msg.node_id '${rhs}'",
("lhs", my_impl->node_id)("rhs", msg.node_id) );
// only the connection from lower p2p_address to higher p2p_address will be considered as a duplicate,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The references to p2p2_address in comment should be changed as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@heifner heifner merged commit be5a662 into develop-boxed Oct 6, 2021
@heifner heifner deleted the EPE-1199-dup-connection-dev-boxed branch October 6, 2021 20:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants