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

Reset sync_known_lib_num when closing a connection - 2.0.x #10651

Merged
merged 11 commits into from
Aug 25, 2021

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Aug 24, 2021

Change Description

  • Reset sync_known_lib_num on closing connection to optimize syncing
  • When closing connection a connection we should no longer consider its view of LIB since we are no longer connected to that peer. This PR updates sync_known_lib_num with highest of known peers when a connection is closed.
  • Fixed some cases where net_plugin kept trying to re-connect on fatal conditions (like chain is a differ chain (chain_id))

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
Copy link
Contributor Author

heifner commented Aug 24, 2021

#10645

@heifner heifner requested a review from dimas1185 August 24, 2021 20:57
@heifner heifner merged commit a2f4f64 into release/2.0.x Aug 25, 2021
@heifner heifner deleted the opt-sync-2.0.x branch August 25, 2021 14:26
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.

3 participants