This document assumes you have your TLS Keys and Validator Keys in place. Your validator key must be the key registered in the signup form.
1. Install the latest packages from https://github.com/CasperLabs/CasperLabs/blob/master/docs/INSTALL.md There is no need to compile from source.
The latest release is: CasperLabs Node 0.20.1 (cadcf522af6e67d9c0e63313f7397fd03e4c98c2) Please verify you have the same version before proceeding.
casperlabs-node --version CasperLabs Node 0.20.1 (cadcf522af6e67d9c0e63313f7397fd03e4c98c2) |
2. Clean up any leftover state from old runs
cd ~/.casperlabs rm sqlite.db rm -r global_state |
3. Pull down the accounts.csv and manifest.toml from Github.
3add70e406639ac74e85a64de2f4dddb accounts.csv a89412ed5f1218ec821ee1f0c4a521eb manifest.toml PLEASE ENSURE THESE ARE THE ONLY 2 FILES PRESENT IN YOUR GENESIS DIRECTORY!!! |
#If you don't have this directory from a previous session go ahead and create it mkdir -p ~/.casperlabs/chainspec/genesis cd ~/.casperlabs/chainspec/genesis curl -O https://raw.githubusercontent.com/CasperLabs/CasperLabs/dev/testnet/accounts.csv curl -O https://raw.githubusercontent.com/CasperLabs/CasperLabs/dev/testnet/manifest.toml |
4. Enable Java Heap Dumps
export _JAVA_OPTIONS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<data-dir>/.casperlabs' |
5. Start the engine and node - Note we have new parameters for the run command at the end. Please ensure your update your node run command to append these to the end.
--highway-init-round-exponent 19 --server-relay-factor 5 --server-init-sync-min-successful 5 --highway-omega-message-time-start 0.1 --highway-omega-message-time-end 0.9 --highway-omega-blocks-enabled --server-deploy-gossip-enabled |
# This is starting the engine and node with nohup. You may choose to start it another way if you want (systemd, scripts, etc.). nohup casperlabs-engine-grpc-server ~/.casperlabs/.casper-node.sock & nohup casperlabs-node run --metrics-prometheus --log-json-path <path to where you want to log> --server-data-dir ~/.casperlabs -b "casperlabs://7dae5a7981bc9694616b5aac8fb7786797ce98ed@13.57.226.23?protocol=40400&discovery=40404 casperlabs://f2a46587e227428f38fa6f1e8f3c4749e8543783@52.53.252.92?protocol=40400&discovery=40404 casperlabs://4bd89b7dfa3eceea71f928ee895fbb2bf77481a9@13.52.217.79?protocol=40400&discovery=40404" --tls-certificate <PATH_TO_TLS_CERT> --tls-key <PATH_TO_TLS_KEY> --casper-validator-private-key-path <PATH_TO_PRIVATE_KEY> --highway-init-round-exponent 19 --server-relay-factor 5 --server-init-sync-min-successful 5 --highway-omega-message-time-start 0.1 --highway-omega-message-time-end 0.9 --highway-omega-blocks-enabled --server-deploy-gossip-enabled & |
5. Observe the network on Explorer: https://testnet-explorer.casperlabs.io/#/explorer