-
Notifications
You must be signed in to change notification settings - Fork 116
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
refactor: removed uncessary panics in zetaclientd process #2210
Conversation
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2210 +/- ##
===========================================
+ Coverage 68.07% 68.20% +0.12%
===========================================
Files 259 259
Lines 14982 14960 -22
===========================================
+ Hits 10199 10203 +4
+ Misses 4321 4298 -23
+ Partials 462 459 -3
|
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.
We have this test in zetacore_context:
assertPanic(t, func() {
zetaContext.GetBTCChainParams()
}, "BTCChain is missing for chainID 0")
Can't this be removed now? Do we still get panic on wrong Bitcoin params ?
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, just some minor comments
…r() and handle them in start.go
removed in 4286a09 |
Description
zetaclientd
process, leaving the only one instart.go
whenzetaclientd
fails to start telemetry server.ObserveInTx
function of bitcoin.Closes: 2024
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: