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:
- SSH login to your Core node.
- Stop Parity service
sudo systemctl stop poa-parity
- 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
- Check your node.toml - it should contain
force_sealing = true
line:
grep force_sealing node.toml
output should be
force_sealing = true
- Remove older backups
sudo rm -rf backups-version
- 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"
- Switch to
validator
user (NOTE: if you’re updating a bootnode, username should bebootnode
)
sudo -i -u validator
- Download new parity binary
curl -LO 'https://releases.parity.io/ethereum/v2.7.2/x86_64-unknown-linux-gnu/parity'
- Check binary integrity
echo 'fe992f0c9b229a4406e82b9ff6d388f4acb4d6ce2782cb79b7bc379e7965ae34 parity' | sha256sum -c
output should be
parity: OK
- Set permission to execute the binary
chmod +x parity
- Download new spec file
curl -LO 'https://raw.githubusercontent.com/poanetwork/poa-chain-spec/core/spec.json'
- Check that new spec contains an activation block set to 14350721
grep 14350721 spec.json
output should be
"14350721": "0x67e90a54AeEA85f21949c645082FE95d77BC1E70"
- Login back to sudo-enabled user
exit
- Restart services
sudo systemctl start poa-parity && sleep 10 && sudo systemctl restart poa-netstats
- Check that your node is “green” in netstats https://core-netstat.poa.network (this may take a couple of minutes)
- Wait to see if your node produces new blocks https://blockscout.com/poa/core