-
Notifications
You must be signed in to change notification settings - Fork 617
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
feat: Add defensive replay protection check into WriteAcknowledgement #5880
feat: Add defensive replay protection check into WriteAcknowledgement #5880
Conversation
I think the e2e test is flaking again, can someone rerun it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @hoangdv2429. I think the original intention of the issue is to add the check in 04-channel's WriteAcknowledgement
, so that all middleware/applications can benefit from it. If we add the check only in ics29 middleware, then only the fee middleware will be protected against the replay attack.
Got it sir. I'll update it |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5880 +/- ##
==========================================
+ Coverage 81.59% 81.61% +0.02%
==========================================
Files 199 198 -1
Lines 15167 12114 -3053
==========================================
- Hits 12375 9887 -2488
+ Misses 2326 1765 -561
+ Partials 466 462 -4
|
Thanks for changing the code, @hoangdv2429. It would fantastic if you could also a test. You can take as example the test that was added for the same check in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, @hoangdv2429!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! LGTM! Thank you @hoangdv2429 🙏🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hoangdv2429! LGTM, I left a suggested improvement for the in code documentation
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Description
closes: #5740
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.