ONLY FOR VALIDATOR NODES
-
this guide assumes that you're running this playbook from the same machine you used to make initial deployment of your node. So that you already have
python
andansible
installed, and you have the correct ssh keypair to root-access the node. -
clone this repository if you haven't done so before
git clone https://github.com/poanetwork/poa-devops.git
cd poa-devops
or pull the latest changes
cd poa-devops
git pull origin master
- create/edit
hosts
file:
echo "" > hosts
and put your node's ip address (assuming it's 192.0.2.1) there with the following header:
[set-min-gas-price]
192.0.2.1
NOTE: if you're updating an existing file, make sure you remove other tags [...]
and ips.
- run the playbook:
ansible-playbook -i hosts set-min-gas-price.yml
- connect to the node
switch to the home folder:
cd /home/validator
and check the update time of node.toml
file (should be about the time you started the playbook)
ls -lh
# a long list should appear here, look for node.toml in the rightmost column and check the date and time on the same row
then check that line was actually added to the file:
grep min_gas_price node.toml
should return a single line:
min_gas_price = 1000000000
also check that backup was created:
ls -lh backups-node.toml/
# look for a file named similar to node.toml-20180202-184912 Numbers represent date and time in UTC when the playbook was started