Proposals of #166

Secret Network v1.8 Emergency Upgrade (revised time)

Exec Legacy Content
passed
Expected result
Turnout / Quorum
65.67% / 33.40%
Voting start 2023.03.02 at 22:03:20
Voting end 2023.03.03 at 22:03:20
99.96%
94 548 195 SCRT
Yes
0.04%
38 652 SCRT
No
0.00%
0 SCRT
Veto
0.00%
674 SCRT
Abstain

Details

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

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,760,000, which is estimated to occur on Saturday, March 4, 2023 at ~3pm 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