Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove old BlockSyncProtocolID #8820

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Jun 7, 2022

Related Issues

#3737

Proposed Changes

I think this is safe to do on the live network today, but this is not my strength. Happy to close if there are concerns.

Additional Info

Some more historical context here: #3624 (comment)

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

@arajasek arajasek requested a review from a team as a code owner June 7, 2022 21:23
@arajasek arajasek requested a review from raulk June 7, 2022 21:23
Copy link
Member

@raulk raulk left a comment

Choose a reason for hiding this comment

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

By now we expect that 100% of nodes will be supporting both protocols, so it should be completely safe to drop the deprecated BlockSync protocol.

However, if we want to be extra sure, we can run a simple DHT and gossipsub/prune based walk to find peers and use identify to verify that 100% of them report both protocols. Might be worth implementing to also have a tool like this for the future.

nit: you can now remove the BlockSyncProtocolID constant.

@arajasek
Copy link
Contributor Author

@raulk 's nit about removing the BlockSyncProtocolID constant has been addressed

@magik6k magik6k self-requested a review June 13, 2022 14:33
@magik6k magik6k merged commit 1cd94f5 into master Jun 13, 2022
@magik6k magik6k deleted the asr/deprecate-blocksync branch June 13, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants