Croeseid Testnet: Running Nodes With Nix
Pre-requisites
Nix supports both Linux and Mac, for Windows users, you can follow the manual instructions.
Install nix
Follow official instructions to install nix: https://nixos.org/download.html
for Mac user, you might need to consult the nix manual for macos installation, simply put, if you have a recent Mac, you can install nix with
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
Install cachix and enable crypto-com binary cache:
Install chain utils for testnet
After installation, you'll have these commands in your PATH
:
chain-maind
, the chain binary for testnetinit-node
, the script to initialize the chain data directory with state sync enabledprint-systemd-config
, print a systemd config file to stdout
Initialization
Change the value of MONIKER
to your node's name.
state sync is initialized and enabled by init-node
automatically, if you don't want that to happen, you can disable it by edit $CHAINHOME/config/config.toml
manually, set enable
field to false
under section [statesync]
like this:
Run
You can now run the chain node manually:
Or setup systemd service on linux:
Please refer to Croeseid Testnet for instructions to issue transactions and create validator.
Isolated installation
One of the strengths of nix package manager is you can have multiple isolated installations, it would be important when you want to manage both testnet and mainnet chains or different versions of them on a single machine.
Last updated