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
Due to the nature of the blockchain, if there is a panic, the chain will stop. As such, panic should only be for non-recoverable errors, and if it is reversible like msg_server level or can fall into an exceptional case due to other module dependencies, I think it is better to process and errors with revert rather than panic.
It was also mentioned in the Cosmos-cash team's review, and all panic and error handling needs to be reconsidered.
Tasks
DecreaseTotalStakings
DecreaseOutstandingRewards
...
References
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Due to the nature of the blockchain, if there is a panic, the chain will stop. As such, panic should only be for non-recoverable errors, and if it is reversible like msg_server level or can fall into an exceptional case due to other module dependencies, I think it is better to process and errors with revert rather than panic.
It was also mentioned in the Cosmos-cash team's review, and all panic and error handling needs to be reconsidered.
Tasks
References
For Admin Use
The text was updated successfully, but these errors were encountered: