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

Always attempt to resync when receiving a block less than LIB. #10434

Merged
merged 3 commits into from
Jun 29, 2021

Conversation

jgiszczak
Copy link
Contributor

Change Description

Option to allow nodeos to continue syncing with a peer that has sent blocks older than LIB due to latency.

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

@nksanthosh nksanthosh requested a review from heifner June 18, 2021 16:27
@nksanthosh
Copy link
Contributor

Continue testing for today and Kevin can review as soon as he is back.

@@ -3971,6 +3981,7 @@ namespace eosio {
" _port \tremote port number of peer\n\n"
" _lip \tlocal IP address connected to peer\n\n"
" _lport \tlocal port number connected to peer\n\n")
( "p2p-always-resync", bpo::value<bool>()->default_value(false), "Always attempt to resync even when peer sends blocks earlier than this node's last irreversible block")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should not add this new option and just make this the behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Option removed.

Copy link
Contributor

Choose a reason for hiding this comment

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

PR name/description needs to be updated.

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.

@jgiszczak jgiszczak changed the title Add p2p-always-resync option. Always attempt to resync when receiving a block less than LIB. Jun 29, 2021
@jgiszczak jgiszczak merged commit bc5e3fc into develop Jun 29, 2021
@jgiszczak jgiszczak deleted the net-plugin_resync_option_EPE-998 branch June 29, 2021 21:00
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