Skip to content

Instantly share code, notes, and snippets.

@amhed
Last active June 5, 2022 21:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amhed/3d756d03d7f6cdaeec203245826d9932 to your computer and use it in GitHub Desktop.
Save amhed/3d756d03d7f6cdaeec203245826d9932 to your computer and use it in GitHub Desktop.
🛫 POKT node takeoff checklist
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment