-
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
[blockindex]: change private to public #4205
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4205 +/- ##
==========================================
+ Coverage 75.38% 76.75% +1.37%
==========================================
Files 303 340 +37
Lines 25923 29268 +3345
==========================================
+ Hits 19541 22466 +2925
- Misses 5360 5696 +336
- Partials 1022 1106 +84 ☔ View full report in Codecov by Sentry. |
@@ -13,22 +13,22 @@ import ( | |||
"github.com/iotexproject/iotex-core/pkg/util/byteutil" | |||
) | |||
|
|||
type actionIndex struct { | |||
type ActionIndex 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.
comment
@@ -15,34 +15,34 @@ import ( | |||
"github.com/iotexproject/iotex-core/pkg/util/byteutil" | |||
) | |||
|
|||
type blockIndex struct { | |||
type BlockIndex 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.
comment
@@ -53,8 +53,8 @@ type ( | |||
Height() (uint64, error) | |||
GetBlockHash(height uint64) (hash.Hash256, error) | |||
GetBlockHeight(hash hash.Hash256) (uint64, error) | |||
GetBlockIndex(uint64) (*blockIndex, error) | |||
GetActionIndex([]byte) (*actionIndex, error) | |||
GetBlockIndex(uint64) (*BlockIndex, error) |
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.
no external usage, delete it
Quality Gate passedIssues Measures |
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #4196
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: