githubEdit

Vulcan Network Upgrade (OLD)

Network Upgrade Instructions From secret-1 To secret-2

⚠️ Please read carefully before you begin the upgrade.

  • Network Upgrade Instructions from secret-1 to secret-2

  • Validators

    • Prepare your secret-1 validator to halt after block #1,246,400

    • Install the new binaries on your SGX machine

    • Migrate your validator's signing key

    • Migrate your validator's wallet

    • Set up your SGX machine and become a secret-2 validator

  • In case of an upgrade failure

Validators

All coordination efforts will be done in the mainnet-validatorsarrow-up-right channel in the Secret Network Discord.

⚠️ Don't delete your secret-1 machine, as we might have to relaunch it.

⚠️ If your SGX machine has a previous secretnetwork installation on it (e.g. from the testnet), you will need to remove it before you continue:

cd ~
sudo systemctl stop secret-node
secretd unsafe-reset-all
secretd reset-enclave
secretd init-enclave --reset
sudo apt purge -y secretnetwork
rm -rf ~/.secretcli/*
rm -rf ~/.secretd/*
rm -rf ~/.sgx_secrets/*

You're probably familiar with SGX by now:

Prepare Your secret-1 Validator To Halt After Block #1,246,400

On the old machine (secret-1):

2. Install The New Binaries On Your SGX Machine

On the new SGX machine (secret-2):

3. Migrate Your Validator's Signing Key

Copy your ~/.secretd/config/priv_validator_key.json from the old machine (secret-1) to the new SGX machine (secret-2) at the same location.

4. Migrate Your Validator's Wallet

Export the self-delegator wallet from the old machine (secret-1) and import to the new SGX machine (secret-2).

On the old machine (secret-1) use secretcli keys export "$YOUR_KEY_NAME". On the new SGX machine (secret-2) use secretcli keys import "$YOUR_KEY_NAME" "$FROM_FILE_NAME"

Notes:

  1. If you're recovering the wallet using secretcli keys add "$YOUR_KEY_NAME" --recover you should also use --hd-path "44'/118'/0'/0/0".

  2. If the wallet is stored on a Ledger device, use --legacy-hd-path when importing it with secretcli keys add.

5. Set Up Your SGX Machine And Become A secret-2 Validator

On the new SGX machine (secret-2):

Now wait until you're done catching up. This is fast. Once the following command outputs true you can continue:

Once your node is done catching up, you can unjail your validator:

You’re now a validator in secret-2! πŸŽ‰

To make sure your validator is unjailed, look for it in here:

(Ref for testnet instructionsarrow-up-right)

In Case Of An Upgrade Failure

If after a few hours the Enigma team announces on the chat that the upgrade failed, we will relaunch secret-1.

  1. On the old machine (secret-1):

  2. Wait for 67% of voting power to come back online.

Last updated

Was this helpful?