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

Reset sync_known_lib_num when closing a connection - 2.2.x #10653

Merged
merged 10 commits into from
Aug 25, 2021

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Aug 25, 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 25, 2021

#10652

@heifner heifner merged commit 831a23e into release/2.2.x Aug 25, 2021
@heifner heifner deleted the opt-sync-2.2.x branch August 25, 2021 14:27
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