-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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: nat; per-validator configuration. #13805
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## nat #13805 +/- ##
===========================================
- Coverage 79.10% 47.02% -32.08%
===========================================
Files 166 961 +795
Lines 9343 80337 +70994
Branches 753 753
===========================================
+ Hits 7391 37782 +30391
- Misses 1693 39655 +37962
- Partials 259 2900 +2641
Flags with carried forward coverage won't be shown. Click here to find out more. |
if err != nil { | ||
return err | ||
} | ||
airdropValue := new(big.Int).Mul(big.NewInt(int64((1+fuzzCfg.N)*1000000)), big.NewInt(params.GWei)) | ||
return spam(fuzzCfg, spammer.SendBasicTransactions, airdropValue) | ||
airdropValue := new(big.Int).Mul(big.NewInt(int64((1+fuzzCfg.N)*1000000)), big.NewInt(ethparams.GWei)) |
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 gwei
I think this provides a fair way to override the test defaults however how would this be configured at execution time? wouldn't there need to be a flag or something to override the default params |
As-is we'd have to recompile and specify overrides it in the suite/gate:
I didn't want to overload this PR with handling of os.Args or reading Files, so we could focus on the params abstractions themselves. Does that answer your question? Thoughts? |
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.
Overall I like the way to specify test parameters, and it fits in well.
Good call on splitting up the args parsing and the parameter structuring
Description
Repercussions
(tx_fuzz.go as an example)
Pros
Cons
Validate
function, but then EVERY test would need to implement this)