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

deprecating AnnounceAccount #8182

Merged
merged 4 commits into from
Dec 12, 2022
Merged

deprecating AnnounceAccount #8182

merged 4 commits into from
Dec 12, 2022

Conversation

pompon0
Copy link
Contributor

@pompon0 pompon0 commented Dec 7, 2022

Deprecating AnnounceAccount in favor of AccountData, when finding routing target. AnnounceAccount will be still used as a fallback. In the next release, once we confirm that AnnounceAccount is not used any more, we will remove the fallback. We will stop broadcasting AnnounceAccount only once MIN_SUPPORTED_VERSION > 57.

@pompon0 pompon0 requested a review from a team as a code owner December 7, 2022 18:41
@pompon0 pompon0 requested review from akhi3030 and mm-near and removed request for akhi3030 December 7, 2022 18:41
@near-bulldozer near-bulldozer bot merged commit 1f0c57e into master Dec 12, 2022
@near-bulldozer near-bulldozer bot deleted the gprusak-announce branch December 12, 2022 11:23
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Dec 14, 2022
Deprecating AnnounceAccount in favor of AccountData, when finding routing target. AnnounceAccount will be still used as a fallback. In the next release, once we confirm that AnnounceAccount is not used any more, we will remove the fallback. We will stop broadcasting AnnounceAccount only once MIN_SUPPORTED_VERSION > 57.
nikurt added a commit that referenced this pull request Jan 9, 2023
nikurt added a commit to nikurt/nearcore that referenced this pull request Jan 9, 2023
near-bulldozer bot pushed a commit that referenced this pull request Jan 19, 2023
pompon0 added a commit that referenced this pull request Jan 25, 2023
near-bulldozer bot pushed a commit that referenced this pull request Jan 25, 2023
This is a roll forward of #8182 ,
which was reverted by #8314 .

The issue that #8182 caused has been fixed in #8407 .
nayduck run: https://nayduck.near.org/#/run/2834
before the fix tests/sanity/switch_node_key.py was failing, now it succeeds.
No nayduck tests are newly failing with this PR, compared to master.
marcelo-gonzalez pushed a commit to marcelo-gonzalez/nearcore that referenced this pull request Jan 26, 2023
This is a roll forward of near#8182 ,
which was reverted by near#8314 .

The issue that near#8182 caused has been fixed in near#8407 .
nayduck run: https://nayduck.near.org/#/run/2834
before the fix tests/sanity/switch_node_key.py was failing, now it succeeds.
No nayduck tests are newly failing with this PR, compared to master.
marcelo-gonzalez pushed a commit to marcelo-gonzalez/nearcore that referenced this pull request Jan 26, 2023
This is a roll forward of near#8182 ,
which was reverted by near#8314 .

The issue that near#8182 caused has been fixed in near#8407 .
nayduck run: https://nayduck.near.org/#/run/2834
before the fix tests/sanity/switch_node_key.py was failing, now it succeeds.
No nayduck tests are newly failing with this PR, compared to master.
nikurt added a commit to nikurt/nearcore that referenced this pull request Jan 30, 2023
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Jan 30, 2023
This is a roll forward of near#8182 ,
which was reverted by near#8314 .

The issue that near#8182 caused has been fixed in near#8407 .
nayduck run: https://nayduck.near.org/#/run/2834
before the fix tests/sanity/switch_node_key.py was failing, now it succeeds.
No nayduck tests are newly failing with this PR, compared to master.
ppca pushed a commit to ppca/nearcore that referenced this pull request Jan 30, 2023
This is a roll forward of near#8182 ,
which was reverted by near#8314 .

The issue that near#8182 caused has been fixed in near#8407 .
nayduck run: https://nayduck.near.org/#/run/2834
before the fix tests/sanity/switch_node_key.py was failing, now it succeeds.
No nayduck tests are newly failing with this PR, compared to master.
nikurt added a commit that referenced this pull request Feb 1, 2023
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2023
AnnounceAccounts is a legacy mechanism supporting Validator AccountId ->
PeerId lookups. It was superseded by AccountsData about a year ago and
has been awaiting deprecation:


https://github.com/near/nearcore/blob/7c0b58fd02a7ecc401736628cc977f6c8cff5fbf/chain/network/src/peer_manager/network_state/mod.rs#L596-L606

By inspecting the `ACCOUNT_TO_PEER_LOOKUPS` metric for several mainnet
validators, I've confirmed that AnnounceAccounts is no longer of use.
Additionally, enough release versions have passed since the introduction
of AccountsData that we can get rid of AnnounceAccounts entirely at this
point (see #8182).

This PR removes all of the client code which has to do with creation and
usage of AnnounceAccounts. I plan to send separate PRs removing related
fields/types from the network message protocol and deprecating
`DBCol::AccountAnnouncements` (as this PR is large enough already).
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.

2 participants