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] - ATX handler rejects invalid ATXs on pubsub lvl #6142

Closed
wants to merge 1 commit into from

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Jul 16, 2024

Motivation

In order to drop peers sending invalid ATXs, the handler must return pubsub.ErrValidationReject

Description

Test Plan

updated tests

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 Jul 16, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 81.7%. Comparing base (978d03c) to head (8fb0a27).
Report is 1 commits behind head on develop.

Files Patch % Lines
activation/handler.go 0.0% 1 Missing ⚠️
activation/handler_v2.go 75.0% 1 Missing ⚠️
activation/poet.go 0.0% 0 Missing and 1 partial ⚠️
fetch/mesh_data.go 83.3% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6142   +/-   ##
=======================================
  Coverage     81.7%   81.7%           
=======================================
  Files          302     302           
  Lines        32637   32642    +5     
=======================================
+ Hits         26696   26701    +5     
  Misses        4203    4203           
  Partials      1738    1738           

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

@poszu
Copy link
Contributor Author

poszu commented Jul 16, 2024

Bors merge

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

In order to drop peers sending invalid ATXs, the handler must return `pubsub.ErrValidationReject`
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title ATX handler rejects invalid ATXs on pubsub lvl [Merged by Bors] - ATX handler rejects invalid ATXs on pubsub lvl Jul 16, 2024
@spacemesh-bors spacemesh-bors bot closed this Jul 16, 2024
@spacemesh-bors spacemesh-bors bot deleted the fix/atx-handler-reject-syntactically-invalid branch July 16, 2024 18:23
fasmat pushed a commit that referenced this pull request Jul 22, 2024
In order to drop peers sending invalid ATXs, the handler must return `pubsub.ErrValidationReject`
fasmat pushed a commit that referenced this pull request Jul 22, 2024
In order to drop peers sending invalid ATXs, the handler must return `pubsub.ErrValidationReject`
fasmat added a commit that referenced this pull request Jul 22, 2024
* ATX handler rejects invalid ATXs on pubsub lvl (#6142)

In order to drop peers sending invalid ATXs, the handler must return `pubsub.ErrValidationReject`

* Update CHANGELOG.md

---------

Co-authored-by: Bartosz Różański <bartek.roza@gmail.com>
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