Croeseid Testnet: Running Nodes With Nix
Last updated
Last updated
Nix supports both Linux and Mac, for Windows users, you can follow the .
Follow official instructions to install nix: https://nixos.org/download.html
for Mac user, you might need to consult the , 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:
After installation, you'll have these commands in your PATH
:
chain-maind
, the chain binary for testnet
init-node
, the script to initialize the chain data directory with state sync enabled
print-systemd-config
, print a systemd config file to stdout
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:
You can now run the chain node manually:
Or setup systemd service on linux:
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.
Please refer to for instructions to issue transactions and create validator.