Docs
  • Overview
  • Our Product Suite
    • Fiamma Bridge (Trust-minimized Bitcoin Bridge, Powered by BitVM2)
      • Introduction
      • Fiamma Bridge Status
      • Consensus Proof
      • Fungible Transfer
      • Multi-Operators
      • Permissionless Challenger
      • Yield opportunities
        • Operator
        • Challenger
        • Fungibility Provider
      • User Guides
        • Testnet Alpha
        • Testnet Beta
          • How to Deposit and Withdraw on Fiamma Bridge?
          • How to run the Fiamma Operator?
            • Operator for Mac
              • 1. Install Fiamma Operator App
              • 2. Register
              • 3. Deposit and Stake BTC
              • 4. Start & Pause Operator
              • 5. Quit Operator and Withdraw Funds
            • Operator for Linux
              • 1. Install and Set Up Fiamma Operator Backend Program
              • 2. Start and Register
              • 3. Deposit and Stake
              • 4. Query Operator Status
              • 5. Manage the Operator Program
              • 6. Quit Operator
              • 7. Troubleshooting
          • How to run a challenger?
    • Fiamma Layer (BitVM-Powered Settlement Layer)
      • Introduction
        • Key Highlights
        • Challenges Tackled
        • Core Technologies
      • Architecture
        • General Flow (Soft Finality)
          • For Programmable Blockchains
          • For Non-Programmable Blockchains :
        • ZKP Verification Process
      • Ecosystem Layout
      • User Guides
        • QuickStart
        • Installation
        • Wallet and Tokens
          • Connect Keplr Wallet
          • Get $FIA
        • Manage Keys
        • Fiamma Testnet Explorer
      • Developer Guides
        • Network Information
        • Fiamma CLI
          • CLI Command Overview
          • CLI Tutorial
        • Fiamma-Committee CLI
        • Run a Fiamma Node
          • Set up a Node
          • Getting Testnet Tokens
          • Become a Bitvm Staker
          • Become a Validator
        • Rest API And GRPC
        • Fiamma ZKPVerify SDK
        • Supported ProofSystem
      • Roadmap
    • Other Essential Protocols
  • Support
Powered by GitBook
On this page
  • System Requirements
  • Install Fiammad
  • Initialize the Node Directory
  • Add Peers and Modify Configuration
  • Setup Cosmovisor
  • Start the Node
Edit on GitHub
  1. Our Product Suite
  2. Fiamma Layer (BitVM-Powered Settlement Layer)
  3. Developer Guides
  4. Run a Fiamma Node

Set up a Node

In this tutorial you will learn how to set up a fiamma node

PreviousRun a Fiamma NodeNextGetting Testnet Tokens

Last updated 11 months ago

NOTE

This guide requires having Fiamma installed on a Linux System. The instructions can be found on the Installation page The version to install is specified at the network info page.

System Requirements

The following specifications have been found to work well:

  • Quad Core or larger AMD or Intel (amd64) CPU

  • 32GB RAM;

  • 1TB NVMe SSD Storage (disk i/o is crucial);

  • 100Mbps bi-directional Internet connection;

Install Fiammad

You can refer to the to install the fiammad binary

Initialize the Node Directory

First, initialize a node configuration directory under ~/.fiamma. The $NODENAME variable specifies the name you aim to give your node.

fiammad init $NODENAME --chain-id fiamma-testnet-1

Then, retrieve the genesis file and place it in the node directory:

wget https://raw.githubusercontent.com/fiamma-chain/networks/main/fiamma-testnet-1/genesis.json -O ~/.fiamma/config/genesis.json

Add Peers and Modify Configuration


# Comma separated list of seed nodes to connect to
seeds = "5d6828849a45cf027e035593d8790bc62aca9cef@18.182.20.173:26656,526d13f3ce3e0b56fa3ac26a48f231e559d4d60c@35.73.202.182:26656"

# Comma separated list of nodes to keep persistent connections to
persistent_peers = "5d6828849a45cf027e035593d8790bc62aca9cef@18.182.20.173:26656,526d13f3ce3e0b56fa3ac26a48f231e559d4d60c@35.73.202.182:26656"

Edit the configuration file at ~/.babylond/config/app.toml and modify the minimum-gas-prices attribute and set it to a value of your choosing. For example

minimum-gas-prices = "0.00001ufia"

Setup Cosmovisor

Cosmovisor is a tool for automating the management of Cosmos SDK application binary files. It simplifies the process of upgrading and rolling back chains.

To install the latest version of Cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

Create the necessary directories

mkdir -p ~/.fiamma/cosmovisor
mkdir -p ~/.fiamma/cosmovisor/genesis/bin
mkdir -p ~/.fiamma/cosmovisor/upgrades

Copy the fiamma binary into the cosmovisor/genesis folder

cp $GOPATH/bin/fiammad ~/.fiamma/cosmovisor/genesis/bin/fiammad

Setup a cosmovisor service:

sudo tee /etc/systemd/system/fiamma.service > /dev/null <<EOF
[Unit]
Description=Fiamma daemon
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --x-crisis-skip-assert-invariants
Restart=always
RestartSec=3
LimitNOFILE=infinity

Environment="DAEMON_NAME=fiammad"
Environment="DAEMON_HOME=${HOME}/.fiamma"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"

[Install]
WantedBy=multi-user.target
EOF

Start the Node

sudo -S systemctl daemon-reload
sudo -S systemctl enable fiamma
sudo -S systemctl start fiamma

You can check the status of the node by running

systemctl status fiamma

You can also check the fiamma's log by running

journalctl -u fiamma -f

Edit the configuration file at ~/.fiamma/config/config.toml and modify the seeds and persistent_peers attributes to contain appropriate seeds and peers of your choice. The full list of Fiamma approved seeds and peers can be found under the network info page.

fiamma-testnet-1
installation page
fiamma-testnet-1