-
Notifications
You must be signed in to change notification settings - Fork 275
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
Don't panic #212
Labels
T:breaking
Type: Breaking Change
Comments
I am experiencing this issue. Instead of Panic IAVL should return errors in order to be able to handle them on the upper layer.
|
Very much in favor of this, especially since this is a library. |
p4u
pushed a commit
to vocdoni/vocdoni-node
that referenced
this issue
May 15, 2020
We've seen a handful of panics from iavl in Envelope and EnvelopeList calls. Until cosmos/iavl#212 is fixed by upstream, try to return or log an error instead of crashing the entire gateway. We shouldn't see these panics anymore after we fixed the data races in the previous commit. Still, be extra safe. For #262.
Repository owner
moved this from 👀 Needs Review
to 👏 Done
in Cosmos-SDK
Jun 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IAVL mostly uses panics for error handling. It should return errors instead.
The text was updated successfully, but these errors were encountered: