POA Forum

On-chain randomness activation on CORE

Hello @poa-validators

In February we activated on-chain randomness on Sokol: On-chain randomness activation on SOKOL

Now we propose to activate the same RandomAuRa contract on POA Core.

To activate it, spec.json and Parity to v2.7.2 need to be updated on Core validator nodes. The corresponding change in spec.json was made in https://github.com/poanetwork/poa-chain-spec/pull/139/files

The randomness activation in POA Core is going to be at block 14350721 (Tuesday, 31-Mar-2020 ~05:51 pm UTC).

For that, we need to update both Parity (to v2.7.2) and spec.json. Please follow the steps below:

  1. SSH login to your Core node.
  2. Stop Parity service
sudo systemctl stop poa-parity
  1. Switch to home directory (NOTE: if you’re updating a bootnode, the path is /home/bootnode)
cd /home/validator
pwd

output should be

/home/validator
  1. Check your node.toml - it should contain force_sealing = true line:
grep force_sealing node.toml

output should be

force_sealing = true
  1. Remove older backups
sudo rm -rf backups-version
  1. Create a new backup
sudo mkdir backups-version
sudo touch backups-version/BEFORE-2.7.2
BKPFLDR="backups-version/$(date '+%Y%m%dT%H%M%S' -u)"
sudo mkdir -p "$BKPFLDR"
sudo mv parity spec.json "$BKPFLDR"
  1. Switch to validator user (NOTE: if you’re updating a bootnode, username should be bootnode)
sudo -i -u validator
  1. Download new parity binary
curl -LO 'https://releases.parity.io/ethereum/v2.7.2/x86_64-unknown-linux-gnu/parity'
  1. Check binary integrity
echo 'fe992f0c9b229a4406e82b9ff6d388f4acb4d6ce2782cb79b7bc379e7965ae34 parity' | sha256sum -c

output should be

parity: OK
  1. Set permission to execute the binary
chmod +x parity
  1. Download new spec file
curl -LO 'https://raw.githubusercontent.com/poanetwork/poa-chain-spec/core/spec.json'
  1. Check that new spec contains an activation block set to 14350721
grep 14350721 spec.json

output should be

          "14350721": "0x67e90a54AeEA85f21949c645082FE95d77BC1E70"
  1. Login back to sudo-enabled user
exit
  1. Restart services
sudo systemctl start poa-parity && sleep 10 && sudo systemctl restart poa-netstats
  1. Check that your node is “green” in netstats https://core-netstat.poa.network (this may take a couple of minutes)
  2. Wait to see if your node produces new blocks https://blockscout.com/poa/core
2 Likes

Activated on Ilmira Nugumanova’s node

3 Likes

:green_circle: Igor Barinov
:green_circle: Ilmira Nugumanova
:green_circle: John H. LeGassic
:green_circle: Jim O’Regan
:green_circle: Ian Ferrell
:green_circle: Henry Vishneuski
:green_circle: Stephen Arsenault
:green_circle: Alex Emelyanov
:green_circle: Peter Chen
:green_circle: Adam Kagy
:green_circle: Siarhei Barylau
:green_circle: Oxana Kunets
:green_circle: Kiryl Ihnatsyeu
:green_circle: Michael Milirud
:black_square_button: Irvin Cardenas
:black_square_button: Kristina Yevseyeva

:negative_squared_cross_mark: John D. Storey

Dear @poa-validators - we only have two days left before Randomness activation on Core. Please, don’t forget to update your node and spec.json following the instruction above.

1 Like

Ian Ferrell node is updated.

2 Likes

Adam Kagy node updated

2 Likes

Core validator node updated.

3 Likes

Michael Milirud code validator node updated. Confirmed to work via netstats and blockscout.

3 Likes

Dear,

please follow the instruction and update your nodes :place_of_worship: