Guide
Here is a node installation guide (Simplified and manual)
Preparing the server for installation
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 chrony liblz4-tool -y
Installing the latest version of Go
ver="1.20.7"
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" >> ~/.bash_profile
source ~/.bash_profile
Build
cd ~
git clone https://github.com/LambdaIM/lambdavm.git
cd lambdavm
git checkout v1.0.1
make install
Init your node
lambdavm init <YOUR_MONIKER> --chain-id lambda_92000-1
lambdavm config chain-id lambda_92000-1
Create or recover your wallet
#NEW WALLET
lambdavm keys add <WALLET_NAME>
#RECOVER OLD WALLET
lambdavm keys add <WALLET_NAME> --recover
Download Genesis
wget https://raw.githubusercontent.com/LambdaIM/mainnet/main/lambda_92000-1/genesis.json -P $HOME/.lambdavm/config/
Set up the minimum gas price and Peers/Seeds/Filter peers/MaxPeers
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01ulamb\"/" $HOME/.lambdavm/config/app.toml
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.lambdavm/config/config.toml
external_address=$(wget -qO- eth0.me)
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.lambdavm/config/config.toml
peers="2c4f8e193fd10ab3a2bc919b484fd1c78eceffb3@13.213.214.88:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.lambdavm/config/config.toml
seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.lambdavm/config/config.toml
sed -i -e "s/^timeout_commit *=.*/timeout_commit = \"2s\"/" $HOME/.lambdavm/config/config.toml
sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g' $HOME/.lambdavm/config/config.toml
sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g' $HOME/.lambdavm/config/config.toml
Download addrbook
wget -O $HOME/.lambdavm/config/addrbook.json "https://raw.githubusercontent.com/nodersteam/cosmos-adrbook/main/lambda/addrbook.json"
To connect the node to monitoring (optional), enable prometheus activation
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.lambdavm/config/config.toml
Create a service file
sudo tee /etc/systemd/system/lambdavm.service > /dev/null <<EOF
[Unit]
Description=lambdavm
After=network-online.target
[Service]
User=$USER
ExecStart=$(which lambdavm) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Use our StateSync
peers="3a4c0376186db78d48e6b1dff5e5b7e3227719a7@lambda.statesync.nodersteam.com:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.lambdavm/config/config.toml
SNAP_RPC=http://lambda.statesync.nodersteam.com:17657
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 500)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.lambdavm/config/config.toml
Start your node
sudo systemctl daemon-reload && sudo systemctl enable lambdavm
sudo systemctl restart lambdavm && sudo journalctl -u lambdavm -f -o cat
Buy some tokens on Osmosis
Wait for full synchronization and create a validator
lambdavm tx staking create-validator \
--amount=1000000000000000000ulamb \
--pubkey=$(lambdavm tendermint show-validator) \
--moniker=<YOUR_MONIKER> \
--chain-id=lambda_92000-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.1" \
--min-self-delegation="1" \
--from=<WALLET_NAME> \
--fees 3500ulamb \
--gas 350000 \
-y
In this network, 1 token is equal to 1000000000000000000ulamb
If you want to delete a node
sudo systemctl stop lambdavm && \
sudo systemctl disable lambdavm && \
rm /etc/systemd/system/lambdavm.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf lambdavm && \
rm -rf .lambdavm && \
rm -rf $(which lambdavm)
Last updated