Running a Chihuahua Node

Running a Chihuahua node is crucial for participating in the Chihuahua network. This guide covers various methods to set up and run a Chihuahua node, including binary executions.

Running Chihuahua with Binary

Prerequisites

  • chihuahuad Binary: Build or download the latest on-chain version of chihuahuad.
  • Permissions: Ensure executable ßpermissions for your binary.

Steps

  1. Execute chihuahuad Binary: Run the command ./chihuahuad [command] [flags]. For starting the daemon, use ./chihuahuad start.
  2. Systemd Configuration: Configure chihuahuad to run as a systemd service for reliability.
    • Move the binary to /usr/bin with cp chihuahuad /usr/bin/.
    • Create and edit the systemd service file /etc/systemd/system/chihuahuad.service with appropriate configurations.
  3. Manage Service:
    • Reload systemd: sudo systemctl daemon-reload
    • Restart chihuahuad: sudo systemctl restart chihuahuad
    • Enable on boot: sudo systemctl enable chihuahuad
    • Check logs: journalctl -u chihuahuad -f

Configuring chihuahuad

  • Config Files: Located in $HOME/.chihuahua/config.
    • config.toml: General settings.
    • app.toml: Application-specific settings.
    • client.toml: Stargaze client settings.