-
Notifications
You must be signed in to change notification settings - Fork 200
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
Update mycelo config values to work with monorepo e2e tests #1579
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1579 +/- ##
==========================================
- Coverage 54.64% 54.63% -0.02%
==========================================
Files 607 607
Lines 69935 69935
==========================================
- Hits 38213 38206 -7
- Misses 28296 28309 +13
+ Partials 3426 3420 -6
Continue to review full report at Codecov.
|
5706cee
to
ff4d060
Compare
@alice-dfi Could you elaborate on your concern? Mycelo is a tool to facilitate development and testing. It it used to generate genesis files for new ephemeral testnets. The changes in this PR modify two things:
These changes only affect the generation of new genesis files from scratch using mycelo. They do not affect existing networks nor even the generation of a genesis file from an existing mycelo directory with a genesis config. Plus, the genesis config as a whole can be customized by the user to suit their needs. So if you have any concerns about this, please provide more details. |
1. Monorepo uses a single validator group 2. Make the DowntimeSlasher's slashable downtime small so it works with the small epoch sizes we use
…'testing' config in monorepo
952dbcd
to
5d823c2
Compare
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, left one comment
@@ -147,7 +147,7 @@ func BaseConfig() *Config { | |||
DowntimeSlasher: DowntimeSlasherParameters{ | |||
Reward: bigIntStr("10000000000000000000"), // 10 cGLD | |||
Penalty: bigIntStr("100000000000000000000"), // 100 cGLD | |||
SlashableDowntime: 60, // Should be overridden on public testnets | |||
SlashableDowntime: 4, // make it small so it works with small epoch sizes, e.g. 10 |
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.
is this desirable for every network template or only for monorepo one?
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.
I think so. The default epoch size (i.e. the epoch size of the default template) is 10, so the former slashable downtime of 60 doesn't make sense with that.
The only template that has a different epoch size is the load test (1000). If we wanted to avoid slashable downtime of 4 with epoch size 1000 it would make sense to override it on the loadtest template rather than have 60 be the default. But the low slashable downtime makes no difference if nobody does the slashing, so I don't see it as mattering for the load test template anyway.
Description
This is a companion PR to celo-org/celo-monorepo#8086, with some changes which are needed to make the tests work:
Tested
Related issues
Backwards compatibility
No incompatibility