-
Notifications
You must be signed in to change notification settings - Fork 324
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
remove ValidateRewardProtocol flag #3946
Conversation
actions := []action.SealedEnvelope{makeTransferAction(t, 1), makeRewardAction(t, 27)} | ||
for _, f := range factories { | ||
block := makeBlock(t, hash.ZeroHash256, receiptRoot, digestHash, actions...) | ||
require.ErrorContains(f.Validate(zctx, block), "Only producer could create reward") |
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.
add a positive test to trigger the error
Codecov Report
@@ Coverage Diff @@
## master #3946 +/- ##
==========================================
+ Coverage 75.38% 76.18% +0.80%
==========================================
Files 303 329 +26
Lines 25923 28005 +2082
==========================================
+ Hits 19541 21335 +1794
- Misses 5360 5572 +212
- Partials 1022 1098 +76
... and 3 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
Kudos, SonarCloud Quality Gate passed! |
Description
in (#3388), validation is added to check the reward action signer, and the change (starting v1.8) is gated by a flag as usual.
It is verified that the validation/check also works for the chain before the feature activation, so the flag can be removed
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: