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] - detect invalid previous ATX for V2 ATXs #6189

Closed
wants to merge 3 commits into from

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Jul 30, 2024

Motivation

Add a check to detect whether the previous ATX of a V2 ATX is the correct one.

Description

Note: It doesn't include finding two ATXs that used the same previous ATX for a single identity, which is required to construct a malfeasance proof. Finding such ATX first requires #6024.

Test Plan

Added a unit test

TODO

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

@poszu poszu marked this pull request as draft July 30, 2024 10:27
@poszu poszu changed the base branch from develop to atxmerge/detect-double-merge July 30, 2024 10:28
@poszu poszu force-pushed the atxmerge/detect-invalid-prev-atx branch from ef16cec to e11433c Compare July 30, 2024 10:30
@poszu poszu changed the title detect double atx-merging in single epoch detect invalid previous ATX for V2 ATXs Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 81.03448% with 11 lines in your changes missing coverage. Please review.

Project coverage is 82.1%. Comparing base (16d8ac9) to head (6fa08cd).
Report is 3 commits behind head on develop.

Files Patch % Lines
activation/handler_v2.go 79.4% 6 Missing and 2 partials ⚠️
sql/atxs/atxs.go 84.2% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6189     +/-   ##
=========================================
- Coverage     82.1%   82.1%   -0.1%     
=========================================
  Files          308     308             
  Lines        34123   34147     +24     
=========================================
+ Hits         28026   28043     +17     
- Misses        4321    4331     +10     
+ Partials      1776    1773      -3     

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

@spacemesh-bors spacemesh-bors bot changed the base branch from atxmerge/detect-double-merge to develop August 6, 2024 08:58
@poszu poszu force-pushed the atxmerge/detect-invalid-prev-atx branch from e11433c to 5c75d66 Compare August 6, 2024 11:28
@poszu poszu marked this pull request as ready for review August 6, 2024 13:28
sql/atxs/atxs.go Show resolved Hide resolved
@poszu
Copy link
Contributor Author

poszu commented Aug 13, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 13, 2024
## Motivation

Add a check to detect whether the previous ATX of a V2 ATX is the correct one.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title detect invalid previous ATX for V2 ATXs [Merged by Bors] - detect invalid previous ATX for V2 ATXs Aug 13, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 13, 2024
@spacemesh-bors spacemesh-bors bot deleted the atxmerge/detect-invalid-prev-atx branch August 13, 2024 12:40
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