Proposals of #165

Secret Network v1.8 Emergency Upgrade

Exec Legacy Content
rejected
Expected result
Turnout / Quorum
7.25% / 33.40%
Voting start 2023.03.02 at 20:03:18
Voting end 2023.03.09 at 20:03:18
0.10%
10 170 SCRT
Yes
84.34%
8 807 902 SCRT
No
14.09%
1 471 965 SCRT
Veto
1.47%
153 485 SCRT
Abstain

Details

logo
Proposer
-
Total deposit
750 SCRT
Submit time
2023.03.02 at 20:03:18
Deposit end time
2023.03.09 at 20:03:18

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

Voter
Answer