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

[Merged by Bors] - Add check if ATXv2 is live already for malsync #6715

Closed
wants to merge 6 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Feb 11, 2025

Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.

Description

Nodes that already run the new version of malfeasance sync get stuck if not enough peers also run a version of the node already that understands malfeasance v2. This PR updates the malfeasance sync to not start until ATXv2 goes live. By then most nodes should have upgraded to a version that supports the new sync protocol and no node should get stuck because of missing peers to sync from.

Test Plan

  • existing tests pass
  • new tests were added to ensure Malsync v2 enables in first ATXv2 epoch and not before

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.8%. Comparing base (5907a15) to head (ddebec3).
Report is 1 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
syncer/malsync/syncer.go 91.6% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6715     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.1%     
=========================================
  Files          366     366             
  Lines        49989   49999     +10     
=========================================
- Hits         39941   39926     -15     
- Misses        7789    7812     +23     
- Partials      2259    2261      +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fasmat fasmat force-pushed the enable-mal2-in-first-atxv2-epoch branch from 53f103f to d6e2559 Compare February 11, 2025 10:54
Copy link
Contributor

@poszu poszu left a comment

Choose a reason for hiding this comment

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

Perhaps you could leave a note to revert it after V2 is launched.

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

Perhaps you could leave a note to revert it after V2 is launched.

Created an issue #6716 and added a TODO to the code referencing it.

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
fasmat added a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
fasmat added a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@andres-spacemesh
Copy link
Contributor

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Canceled.

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 11, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@andres-spacemesh
Copy link
Contributor

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 11, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Feb 12, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 12, 2025
## Motivation

This adds a check to malfeasance sync to not sync with other peers before the first ATXv2 epoch.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Add check if ATXv2 is live already for malsync [Merged by Bors] - Add check if ATXv2 is live already for malsync Feb 12, 2025
@spacemesh-bors spacemesh-bors bot closed this Feb 12, 2025
@spacemesh-bors spacemesh-bors bot deleted the enable-mal2-in-first-atxv2-epoch branch February 12, 2025 13:56
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.

3 participants