Fiamma Node Setup


Ubuntu : 22.04
CPU : 4
RAM : 8
DISK : 160
Update : 
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
sudo apt-get install -y libssl-devGO : 
ver="1.22.3" 
cd $HOME 
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"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile    Download Fiamma : 
cd $HOME
rm -rf fiamma
git clone https://github.com/fiamma-chain/fiamma
cd fiamma
git checkout v0.1.3
make installInit  : 
Change " Validname "with your Validator Name
fiammad init Validname --chain-id fiamma-testnet-1
sed -i -e "s|^node *=.*|node = \"tcp://localhost:26657\"|" $HOME/.fiamma/config/client.toml
sed -i -e "s|^keyring-backend *=.*|keyring-backend = \"os\"|" $HOME/.fiamma/config/client.toml
sed -i -e "s|^chain-id *=.*|chain-id = \"fiamma-testnet-1\"|" $HOME/.fiamma/config/client.tomlGenesis / AddrBook : 
wget -O $HOME/.fiamma/config/genesis.json https://raw.githubusercontent.com/CoinHuntersTR/props/main/fiamma/genesis.json
wget -O $HOME/.fiamma/config/addrbook.json  https://raw.githubusercontent.com/CoinHuntersTR/props/main/fiamma/addrbook.jsonPruning : 
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.fiamma/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.fiamma/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.fiamma/config/app.toml
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.0001ufia"|g' $HOME/.fiamma/config/app.tomlPeers / Seeds : 
SEEDS=""
PEERS="16b7389e724cc440b2f8a2a0f6b4c495851934ff@fiamma-testnet-peer.itrocket.net:49656,[email protected]:37656,[email protected]:60556,[email protected]:37656,[email protected]:26706,[email protected]:26656,[email protected]:17456,[email protected]:26656,[email protected]:37656,[email protected]:26856,[email protected]:37656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*seeds *=.*/seeds = \"$SEEDS\"/}" \
       -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.fiamma/config/config.tomlCrate A Service File : 
sudo tee /etc/systemd/system/fiammad.service > /dev/null <<EOF
[Unit]
Description=Fiamma node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.fiamma
ExecStart=$(which fiammad) start --home $HOME/.fiamma
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOFEnable / Start Service : 
sudo systemctl daemon-reload
sudo systemctl enable fiammad
sudo systemctl restart fiammad && sudo journalctl -u fiammad -fLOGS : 
journalctl -u fiammad -f -o catIf you want exit the logs - CTRL C
Crate Wallet : 
fiammad keys add wallet-nameSave Your Wallet keys.
Wallet Import : 
fiammad keys add wallet-name --recoverFaucet : 
https://testnet-faucet.fiammachain.io/Crate Validator : 
Reminder: You can't create a validator without Sync. You must have to catch the latest block.
cd $HOMEfiammad tendermint show-validatorThe code below will give you pubkey. Save it. You'll need it.
Change Pubkey - Change Moniker - Website
cat << EOF > ~/.fiamma/config/validator.json
{
	"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"1PuL3HJCGX2lh53aMuaOaZEaQjrJy2EAWMoWcYqKETg="},
	"amount": "20000ufia",
	"moniker": "Moniker",
	"identity": "",
	"website": "",
	"security": "",
	"details": "RPCdot.com π¦",
	"commission-rate": "0.1",
	"commission-max-rate": "0.2",
	"commission-max-change-rate": "0.01",
	"min-self-delegation": "1"
}
EOFsudo systemctl restart fiammadChange Wallet Name - And Crate Valid
fiammad tx staking create-validator ~/.fiamma/config/validator.json --from walletname --chain-id fiamma-testnet-1 --fees 20ufiaDelegate : 
fiammad tx staking delegate valoper-address 10000ufia \
--chain-id fiamma-testnet-1 \
--from "wallet-name" \
--fees 500ufia \
--node=http://localhost:(whatever you typed in custom_port)657Delete : 
cd $HOME
sudo systemctl stop fiammad
sudo systemctl disable fiammad
sudo rm -rf /etc/systemd/system/fiammad.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/fiammad
sudo rm -f $(which fiamma)
sudo rm -rf $HOME/.fiamma $HOME/fiamma
sed -i "/FIAMMA_/d" $HOME/.bash_profile
Last updated