-
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
mycelo genesis
gingerbread activation fix
#2169
Conversation
49f3091
to
7a7c03f
Compare
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #2169 +/- ##
==========================================
+ Coverage 55.08% 55.23% +0.14%
==========================================
Files 678 678
Lines 114321 114321
==========================================
+ Hits 62978 63141 +163
+ Misses 47448 47316 -132
+ Partials 3895 3864 -31 ☔ View full report in Codecov by Sentry. |
7a7c03f
to
1f4b02f
Compare
mycelo genesis
gingerbread activation fix
1f4b02f
to
459662f
Compare
Coverage from tests in coverage: 46.8% of statements across all listed packagescoverage: 57.2% of statements in consensus/istanbul coverage: 23.7% of statements in consensus/istanbul/announce coverage: 54.3% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 64.8% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 64.4% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/random |
We have 2 things there
For 1), I didn't wanted to change the logic of what the other team was auditing nor add some hacky ways as infinite o something similar just because of a contract limitation For 2), the way to calculate the block N depends on the block N-1, and the activation block, is the one that instead of using the block N-1, consumes the state at the beginning of the block I thought that it was not going to generate any issue, mostly because the chain construction starts at block 1, so technically, any block is constructed as gingerbread, but maybe I should have explained it better |
459662f
to
b699fd1
Compare
09cc0f9
to
56d9ef4
Compare
5e9865d
to
925fba8
Compare
cd95aef
to
cc32d87
Compare
cc32d87
to
8f43859
Compare
f92ef57
to
583a16c
Compare
2e16d91
to
4b8818f
Compare
Unit tests are passing but are flaky in github actions |
Description
Fixes gingerbread activation in mycelo.
This results in this genesis config, instead of
gingerbreadBlock
not being set: