Lumera
lumera-testnet-1
RPC, API, gRPC
RPC:
https://lumera-testnet-rpc.techhubs.asia
API:
https://lumera-testnet-api.techhubs.asia
gRPC:
lumera-testnet-grpc.techhubs.asia:12090
Update system and install tools
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Install Go
cd $HOME
VER="1.22.2"
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
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Download and install
curl -LO https://github.com/LumeraProtocol/lumera/releases/download/v1.0.1/lumera_v1.0.1_linux_amd64.tar.gz
tar -xvf lumera_v1.0.1_linux_amd64.tar.gz
cp libwasmvm.x86_64.so /usr/lib/
cp lumerad /usr/local/bin
Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0
Create service
sudo tee /etc/systemd/system/lumerad.service > /dev/null << EOF
[Unit]
Description=junction node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.lumera"
Environment="DAEMON_NAME=lumerad"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.lumera/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
Init node
NOTE: Write the node name
lumerad init "TechHubs" --chain-id lumera-testnet-1
Genesis and addressbook
wget -O genesis.json https://raw.githubusercontent.com/LumeraProtocol/lumera-networks/master/testnet/genesis.json --inet4-only
mv genesis.json ~/.lumera/config
wget -O addrbook.json https://snapshot.nodevism.com/testnet/lumera/addrbook.json --inet4-only
mv addrbook.json ~/.lumera/config
Port
echo "export LUMERA_PORT="12"" >> $HOME/.bash_profile
source $HOME/.bash_profile
sed -i.bak -e "s%:1317%:${LUMERA_PORT}317%g;
s%:8080%:${LUMERA_PORT}080%g;
s%:9090%:${LUMERA_PORT}090%g;
s%:9091%:${LUMERA_PORT}091%g;
s%:8545%:${LUMERA_PORT}545%g;
s%:8546%:${LUMERA_PORT}546%g;
s%:6065%:${LUMERA_PORT}065%g" $HOME/.lumera/config/app.toml
sed -i.bak -e "s%:26658%:${LUMERA_PORT}658%g;
s%:26657%:${LUMERA_PORT}657%g;
s%:6060%:${LUMERA_PORT}060%g;
s%:26656%:${LUMERA_PORT}656%g;
s%^external_address = ""%external_address = "$(wget -qO- eth0.me):${LUMERA_PORT}656"%;
s%:26660%:${LUMERA_PORT}660%g" $HOME/.lumera/config/config.toml
Seed ve Peer
SEEDS="10a50e7a88561b22a8d1f6f0fb0b8e54412229ab@seeds.lumera.io:26656"
PEERS="10a50e7a88561b22a8d1f6f0fb0b8e54412229ab@seeds.lumera.io:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*seeds *=.*/seeds = \"$SEEDS\"/}" \
-e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.lumera/config/config.toml
Pruning
# config pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"0\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.lumera/config/app.toml
Gas and index
# set minimum gas price, enable prometheus and disable indexing
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0ulume"|g' $HOME/.lumera/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.lumera/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"kv\"/" $HOME/.lumera/config/config.toml
Let's enable
sudo systemctl daemon-reload
sudo systemctl enable lumerad
Start service and check the logs
sudo systemctl daemon-reload && sudo systemctl start lumerad && sudo journalctl -u lumerad -f --no-hostname -o cat
Check the logs
sudo journalctl -u lumerad -fo cat
Create wallet
junctiond keys add wallet --keyring-backend os
Wallet import
lumerad keys add wallet --keyring-backend os --recover
Create a validator.json
junctiond comet show-validator
nano $HOME/validator.json
{
"pubkey": ,
"amount": "1ulume",
"moniker": "",
"identity": "optional identity signature (ex. UPort or Keybase)",
"website": "validator's (optional) website",
"security": "validator's (optional) security contact email",
"details": "validator's (optional) details",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
lumerad tx staking create-validator $HOME/validator.json --from walletname --chain-id lumera-testnet-1 --fees=5000ulume --gas 1000000 --gas-adjustment 1.5 -y
Delete node
sudo systemctl stop lumerad
sudo systemctl disable lumerad
sudo rm -rf /etc/systemd/system/lumerad.service
sudo systemctl daemon-reload
sudo rm -f $(which lumerad)
sudo rm -rf $HOME/.lumerad
Made by TechHubs
Last updated