Updates to support xDai chain
This commit is contained in:
parent
382e036a8f
commit
4a7a0d8ad1
|
@ -20,7 +20,7 @@ cp group_vars/hf-spec-change.example group_vars/all
|
|||
and set the following variables:
|
||||
* `poa_role` - node's role (one of `bootnode`, `validator`, `moc`, `explorer`, `netstat`)
|
||||
* `MAIN_REPO_FETCH` - github account where spec.json is located (e.g. `poanetwork`)
|
||||
* `GENESIS_BRANCH` - correct network name (`sokol` for testnet, `core` for mainnet)
|
||||
* `GENESIS_BRANCH` - correct network name (`sokol` for testnet, `core` for mainnet, `dai` for xdai-chain)
|
||||
|
||||
3. create/edit `hosts` file:
|
||||
```
|
||||
|
@ -57,6 +57,8 @@ on lines where you omitted explicit `poa_role`, the value from `group_vars/all`
|
|||
ansible-playbook -i hosts site.yml
|
||||
```
|
||||
|
||||
**NOTE** if you're getting ssh connection error, try to add option `-e 'ansible_ssh_user=ubuntu'` to the command line above, substituting `ubuntu` with correct ssh username, which is usually either `ubuntu` or `root` or `poa` or `centos` depending on your setup
|
||||
|
||||
5. verify that your node is active in the netstat of the corresponding network (https://sokol-netstat.poa.network/ for `sokol` or https://core-netstat.poa.network/ for `core`)
|
||||
|
||||
6. connect to the node
|
||||
|
|
|
@ -20,7 +20,7 @@ cp group_vars/upd-parity-version.example group_vars/all
|
|||
```
|
||||
and change the following variables:
|
||||
* `poa_role` - role of the node on the network (one of `bootnode`, `validator`, `moc`, `explorer`)
|
||||
* `GENESIS_BRANCH` - either `"sokol"` or `"core"` depending which network you're updating
|
||||
* `GENESIS_BRANCH` - either `"sokol"` or `"core"` or `"dai"` depending which network you're updating
|
||||
|
||||
don't change other options
|
||||
|
||||
|
@ -35,6 +35,7 @@ don't change other options
|
|||
```
|
||||
ansible-playbook -i hosts upd-parity-version.yml
|
||||
```
|
||||
**NOTE** if you're getting ssh connection error, try to add option `-e 'ansible_ssh_user=ubuntu'` to the command line above, substituting `ubuntu` with correct ssh username, which is usually either `ubuntu` or `root` or `poa` or `centos` depending on your setup
|
||||
|
||||
### Verifying the update
|
||||
0. playbook run should be completed without errors
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# bootnode | moc | validator | explorer | netstat
|
||||
poa_role: "bootnode"
|
||||
poa_role: "validator"
|
||||
|
||||
# repo to fetch HFs from
|
||||
MAIN_REPO_FETCH: "poanetwork"
|
||||
|
|
|
@ -15,6 +15,13 @@
|
|||
PARITY_VERSION_CHECK: "2.2.1"
|
||||
when: GENESIS_BRANCH == 'core'
|
||||
|
||||
- set_fact:
|
||||
PARITY_BIN_LOC_UBUNTU: "https://releases.parity.io/ethereum/v2.2.5/x86_64-unknown-linux-gnu/parity"
|
||||
PARITY_BIN_SHA256_UBUNTU: "5a4c8d947feadc48cae1a85f58845b3129d73f96cc7c13df2df8a780584da947"
|
||||
PARITY_BIN_LOC_CENTOS: "https://releases.parity.io/ethereum/v2.2.5/x86_64-unknown-linux-gnu/parity"
|
||||
PARITY_BIN_SHA256_CENTOS: "5a4c8d947feadc48cae1a85f58845b3129d73f96cc7c13df2df8a780584da947"
|
||||
PARITY_VERSION_CHECK: "2.2.5"
|
||||
when: GENESIS_BRANCH == 'dai'
|
||||
|
||||
- name: Check that node role is correct
|
||||
stat:
|
||||
|
|
Loading…
Reference in New Issue