Skip to content

Staging upgrade for 1.5.8

Joe Sacher edited this page Aug 9, 2024 · 6 revisions

1.5.8 Release on Casper MainNet

This is an rapid update to include some regressions from Rust dependency libraries and auction configuration changes.

Activation will occur at Era: 14653

This should occur at approximately:

  • US-Pacific 8/9/2024 6:41
  • US-Eastern 8/9/2024 9:41
  • UTC 8/9/2024 13:41
  • CET 8/9/2024 14:41
  • HK 8/9/2024 21:41

Instructions to stage:

sudo -u casper /etc/casper/node_util.py stage_protocols casper.conf

Verification of staging:

/etc/casper/node_util.py watch

Should show:

Next Upgrade: {'activation_point': 14653, 'protocol_version': '1.5.8'}

Binary verification:

$sha512sum /var/lib/casper/bin/1_5_8/casper-node

3f3f7776da50f6de76d75ae05ec44f5e9363dc1bf27eafd24633609b3c01573166a2398cd9e86798a274f1acd9ca2b821537da8ba1b0c5b1961a365b0546b5c8 /var/lib/casper/bin/1_5_8/casper-node

Late staging recovery

If you are staging this late, put a recent trusted_hash in the /etc/casper/1_5_8/config.toml to make sure you latch on.

This can be done automatically with:

NODE_ADDR=https://rpc.mainnet.casperlabs.io
PROTOCOL=1_5_8
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(casper-client get-block --node-address $NODE_ADDR | jq -r .result.block.hash | tr -d '\n')'" /etc/casper/$PROTOCOL/config.toml

Then run the upgrade version with sudo /etc/casper/node_util.py force_run_version 1_5_8

If you are a validator, make sure you have not been evicted: https://docs.casper.network/operators/becoming-a-validator/recovering/