Node Installation
Hardware requirements The following requirements are recommended for running FIAMMA:
6 or more physical CPU cores
At least 1TB of NVME disk storage
At least 32GB of memory (RAM)
At least 500mbps network bandwidth
Manual Installation
# Update & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq htop tmux chrony liblz4-tool aria2 -y
# Install Go
cd $HOME
VER="1.22.3"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export FIAMMA_CHAIN_ID="fiamma-testnet-1"" >> $HOME/.bash_profile
echo "export FIAMMA_PORT="46"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
cd $HOME
rm -rf fiamma
git clone https://github.com/fiamma-chain/fiamma
cd fiamma
git checkout v0.1.3
make install
# Config and Init App
fiammad config node tcp://localhost:${FIAMMA_PORT}657
fiammad config chain-id $FIAMMA_CHAIN_ID
fiammad config keyring-backend test
fiammad init $MONIKER --chain-id $FIAMMA_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.fiamma/config/genesis.json https://testnet-files.syanodes.my.id/fiamma-genesis.json
wget -O $HOME/.fiamma/config/addrbook.json https://testnet-files.syanodes.my.id/fiamma-addrbook.json
#Configure Seeds and Peers
SEEDS=""
PEERS="[email protected]:37656,[email protected]:26656,[email protected]:17456,[email protected]:26656,[email protected]:26856,[email protected]:11656,[email protected]:26656,[email protected]:50656,[email protected]:60956,[email protected]:37656,[email protected]:12656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.fiamma/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.00001ufia\"/" $HOME/.fiamma/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.fiamma/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.fiamma/config/config.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.fiamma/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.fiamma/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.fiamma/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.fiamma/config/app.toml
# Set Custom Port
sed -i.bak -e "s%:1317%:${FIAMMA_PORT}317%g;
s%:8080%:${FIAMMA_PORT}080%g;
s%:9090%:${FIAMMA_PORT}090%g;
s%:9091%:${FIAMMA_PORT}091%g;
s%:8545%:${FIAMMA_PORT}545%g;
s%:8546%:${FIAMMA_PORT}546%g;
s%:6065%:${FIAMMA_PORT}065%g" $HOME/.fiamma/config/app.toml
sed -i.bak -e "s%:26658%:${FIAMMA_PORT}658%g;
s%:26657%:${FIAMMA_PORT}657%g;
s%:6060%:${FIAMMA_PORT}060%g;
s%:26656%:${FIAMMA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${FIAMMA_PORT}656\"%;
s%:26660%:${FIAMMA_PORT}660%g" $HOME/.fiamma/config/config.toml
sed -i \
-e 's|^chain-id *=.*|chain-id = "fiamma-testnet-1"|' \
-e 's|^keyring-backend *=.*|keyring-backend = "test"|' \
-e 's|^node *=.*|node = "tcp://localhost:46657"|' \
$HOME/.fiamma/config/client.toml
# Set Service File
sudo tee /etc/systemd/system/fiammad.service > /dev/null <<EOF
[Unit]
Description=fiamma-testnet
After=network-online.target
[Service]
User=$USER
ExecStart=$(which fiammad) start --home $HOME/.fiamma
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable fiammad
sudo systemctl start fiammad && sudo journalctl -fu fiammad -o cat
Auto Installation
wget https://snapshot.syanodes.my.id/auto/testnet/fiamma_auto && chmod +x fiamma_auto && ./fiamma_auto
Last updated