Chainspec update for London Hardfork

What

Description

What

Description

Purpose

Documentation to update chainspec of Volta and EnergyWebChain for London Hardfork

Creator, date

@Kiran Roy ​​, 04.06.2021

Reviewer, date

@Kamil Witkowski @Adam Nagy@Sam Hartnett

Owner

@Kiran Roy

Version, date

v4.0, 27.10.2021

London Hardfork Overview

Ethereum mainnet upgraded London Hardfork on 5th of August, 2021.

London EIPs

More details of London upgrade can be found here - Ethereum London Upgrade

Voted

Energy Web Chain (EWC) validators voted to implement the London hardfork to enhance performance, and security and to ensure the Volta testnet and EWC production networks continue to align with state-of-the-art functionality of the Ethereum main net.

In preparation for the London hardfork, all Volta validator nodes and EWC validator nodes have been updated to OpenEthereum v3.3.0-rc.11 and updates to the respective chainspec files will commence - TBU

Volta Chainspec

VOLTA chainspec details (current as of 29’th September, 2021):

1 2 Checksum: 2c2d73850c209de89b1ef55e329b59661a4047cae340d44b343fc075c602f976 URL: https://raw.githubusercontent.com/energywebfoundation/ewf-chainspec/master/Volta.json

EnergyWebChain Chainspec

EnergyWebChain (EWC) chainspec details (current as of 5th November, 2021):

1 2 Checksum: 7c940552f47b50de584260e1d851e8f18b147109de9d68e2a1f1b363c24a4dc9 URL: https://raw.githubusercontent.com/energywebfoundation/ewf-chainspec/master/EnergyWebChain.json

How to Update Chainspec

  • SSH into server

  • Make sure you have root access: sudo -s

  • Stop containers

    • 1 2 cd $HOME/docker-stack/ docker-compose stop
  • cd $HOME/docker-stack/config/

  • Create a backup of chainspec.json

    • mv chainspec.json chainspec.json_bkp

  • Download new chainspec.json from the link above - wget -O chainspec.json URL (capital “O”)

  • Calculate the checksum of chainspec.json file:

    • openssl dgst -sha256 chainspec.json

  • Verify whether checksum matches what's listed on this page (above) and GitHub - ewf-chainspec

  • If checksum verification is OK, restart Docker containers:

    • cd $HOME/docker-stack

    • docker-compose restart

  • Verify docker containers are running again:

    • docker-compose ps

  • Check logs:

    • docker-compose logs -f --tail 100 parity

    • docker-compose logs -f --tail 100 parity-telemetry

      • Log output of parity-telemetry container

      • 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 parity-telemetry_1 | [INFO] Got new Block: 12127696 parity-telemetry_1 | [INFO] Got new Block: 12127723 parity-telemetry_1 | [INFO] Got new Block: 12127748 parity-telemetry_1 | [INFO] Got new Block: 12127765 parity-telemetry_1 | [INFO] Got new Block: 12127786 parity-telemetry_1 | [INFO] Got new Block: 12127807 parity-telemetry_1 | [INFO] Got new Block: 12127825 parity-telemetry_1 | [INFO] Got new Block: 12127835 parity-telemetry_1 | [INFO] Got new Block: 12127856 parity-telemetry_1 | [INFO] Got new Block: 12127861 parity-telemetry_1 | [INFO] Got new Block: 12127867 parity-telemetry_1 | [INFO] Got new Block: 12127889 parity-telemetry_1 | [INFO] Got new Block: 12127897 parity-telemetry_1 | [INFO] Got new Block: 12127916 parity-telemetry_1 | [INFO] Got new Block: 12127938 parity-telemetry_1 | [INFO] Got new Block: 12127954 parity-telemetry_1 | [INFO] Got new Block: 12127975 parity-telemetry_1 | [INFO] Got new Block: 12128003 parity-telemetry_1 | [INFO] Got new Block: 12128024 parity-telemetry_1 | [INFO] Got new Block: 12128040 parity-telemetry_1 | [INFO] Got new Block: 12128047 parity-telemetry_1 | [INFO] Got new Block: 12128062 parity-telemetry_1 | [INFO] Got new Block: 12128071 parity-telemetry_1 | [INFO] Got new Block: 12128085 parity-telemetry_1 | [INFO] Got new Block: 12128106