You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Several instances of the panic function were identified in the codebase. They appear to be used to handle errors. This can cause potential issues, as invoking a panic can cause the program to halt execution and crash in some cases. This in turn can negatively impact the availability of the software for users.
I don't understand why not panic, if there is a serous issue, we really need to stop the node, even the chain. then we should panic, in some context, return an error and continue doesn't make sense and chain will be messy situation.
@smartyalgo asked for clarification from halborn on the appropriate time to panic since panics are used in cosmos sdk as well. michael to follow up. remaining item: review areas to determine if we actually need a panic.
Description:
Several instances of the panic function were identified in the codebase. They appear to be used to handle errors. This can cause potential issues, as invoking a panic can cause the program to halt execution and crash in some cases. This in turn can negatively impact the availability of the software for users.
Code Location:
Recommendation
Instead of using panics, custom errors should be defined and handled according to the Cosmos best practices.
The text was updated successfully, but these errors were encountered: