-
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
fix read tip tool bug #3662
fix read tip tool bug #3662
Conversation
c9290ec
to
098bdaf
Compare
Codecov Report
@@ Coverage Diff @@
## master #3662 +/- ##
==========================================
+ Coverage 74.47% 74.53% +0.06%
==========================================
Files 269 274 +5
Lines 23925 24048 +123
==========================================
+ Hits 17818 17925 +107
- Misses 5174 5184 +10
- Partials 933 939 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
func readStateDBPath() string { | ||
if _stateDBPath != "" { | ||
return _stateDBPath | ||
} | ||
cfg, err := config.New([]string{_overwritePath, _secretPath}, []string{}) |
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.
nit: instead of return statedb path, can return the cfg
?
cfg, err := stateDBPathConfig()
then directly use it in main()
store, err := db.CreateKVStore(cfg.DB, cfg.Chain.TrieDBPath)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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 #(issue)
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: