-
Notifications
You must be signed in to change notification settings - Fork 328
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
Add GetEpochData API #831
Add GetEpochData API #831
Conversation
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 58.42% 58.49% +0.07%
==========================================
Files 149 149
Lines 12169 12221 +52
==========================================
+ Hits 7110 7149 +39
- Misses 4104 4110 +6
- Partials 955 962 +7
Continue to review full report at Codecov.
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 58.42% 58.49% +0.07%
==========================================
Files 149 149
Lines 12169 12221 +52
==========================================
+ Hits 7110 7149 +39
- Misses 4104 4110 +6
- Partials 955 962 +7
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 58.42% 58.49% +0.07%
==========================================
Files 149 149
Lines 12169 12221 +52
==========================================
+ Hits 7110 7149 +39
- Misses 4104 4110 +6
- Partials 955 962 +7
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
=========================================
Coverage ? 58.49%
=========================================
Files ? 149
Lines ? 12221
Branches ? 0
=========================================
Hits ? 7149
Misses ? 4110
Partials ? 962
Continue to review full report at Codecov.
|
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.
Shall we rename GetProductivity to GeEpochMeta, although it's a breaking change?
@@ -478,6 +479,45 @@ var ( | |||
numCommitteeBlockProducers: 1, | |||
}, | |||
} | |||
|
|||
getEpochMetaTests = []struct { |
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.
getEpochMetaTests
is a global variable (from gochecknoglobals
)
Given an epoch number, GetEpochData would return the epochData(epoch number, epoch start height, gravity chain start height), block producers' productivity in the epoch, and bp list for the next epoch if it exists.