- Make sure
pocket
is configured to run as a systemctl process
Our AWS instances have it configured like so:
[Unit]
Description=POKT service
After=network.target
[Service]
User=ubuntu
ExecStart=/home/ubuntu/go/bin/pocket start
[Install]
WantedBy=default.target
-
Update config.json with correct domain name for your machine
-
Update chains.json with correct ETH node. Simplest config for ETH relay on mainnet looks like this:
[
{
"id": "0021",
"url": "eth-node-public-id:8545",
"basic_auth": {
"username": "",
"password": ""
}
}
]
- Run —simulate relay
If both the POKT node and the ETH node are running, you should be able to execute a relay call
(just remember to change eth-node-ip
and pokt-node-ip
for your own)
curl -X POST --data '{"chain_url":"HTTP://eth-node-ip:8545","payload":{"data":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBalance\",\"params\":[\"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\", \"latest\"],\"id\":1}","method":"POST","path":"","headers":{}}}' https://pokt-node-ip:8081/v1/client/sim
-
Reset all synced data so far
-
pocket reset
-
rm -rf data
-
rm -rf pocket_evidence.db
-
-
Import or create account that will act as validator
-
Re-create account on local machine
-
Fund the account with 16,000 POKT (this is my choice, just make sure to have at least 15,000 + ~5% in case you get slashed)
-
Set
ulimit -n 100000
. See https://docs.pokt.network/docs/system-file-descriptors#how-do-i-calculate-the-ulimit for whatever suits your configuration -
Make sure the node is fully synced. You can watch latest node over at https://explorer.pokt.network/
-
pocket accounts set-validator [validator-address]
to the imported address -
Perform stake operation
pocket nodes stake [validatorAddress] 15500000000 0021 https://url:8081 mainnet 100000