Secret Network v1.8 Emergency Upgrade
Details
Description
This proposal proposes that the chain elect to do an EMERGENCY software upgrade to the v1.8 software version of the Secret Network codebase on block 7,747,900, which is estimated to occur on Saturday, March 3, 2023 at ~8:15pm UTC. Block times have high variance, so please monitor the chain for more precise time estimates.
Emergency Upgrade Reason
After the upgrade to v1.7 on March 1, many node runners experienced node crashes with an apphash error either when starting from state sync or after restarting their node's process. Upon conducting a root cause analysis, SCRT Labs discovered a bug in our v1.7 code.
The bug was caused by the introduction of a new encryption scheme in v1.7. Specifically, a unique salt was added to the encryption of each storage write, which includes a counter of contract calls within each block. This counter only exists in the enclave's memory, and the bug caused it to never reset when a new block began. As a result, restarting a node or starting from state sync caused the counter to become out of sync with all the nodes that had not been restarted after the v1.7 upgrade. Consequently, this resulted in a different encryption output which is part of consensus.
While this bug still exists, existing nodes cannot restart their process and new nodes cannot join the network.
Upgrade Instructions
See docs.scrt.network for upgrade instructions.
Votes