As the network grows, bandwidth, CPU, and memory requirements rise. Large hard drives are recommended for storing years of blockchain history, as well as significant RAM to process the increasing amount of transactions.
Also, running on testnet and mainnet will feature different requirements.
# Install dependencies for building from sourcesudoaptupdatesudoaptinstall-ylz4jqmakegitgccbuild-essentialcurlchronyunzipgzipsnapdtmuxbc# Install Gosudorm-rf/usr/local/gocurl-Lhttps://go.dev/dl/go1.21.6.linux-amd64.tar.gz|sudotar-xzf--C/usr/localecho'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin'>> $HOME/.bash_profilesource.bash_profile
Install node
Replace "NODE_MONIKER" with your name moniker
# Clone project repositorycd&&rm-rflavagitclonehttps://github.com/lavanet/lavacdlavagitcheckoutv4.1.0# Build binaryexport LAVA_BINARY=lavadmakeinstall# Set node CLI configurationlavadconfigchain-idlava-testnet-2lavadconfigkeyring-backendtestlavadconfignodetcp://localhost:19957# Initialize the nodelavadinit"NODE_MONIKER"--chain-idlava-testnet-2# Download genesis,addrbook filescurl-Lhttps://snapshots-testnet.unitynodes.com/lava-testnet-2/genesis.json> $HOME/.lava/config/genesis.jsoncurl-Lhttps://snapshots-testnet.unitynodes.com/lava-testnet-2/addrbook.json> $HOME/.lava/config/addrbook.json# Set seedssed -i -e 's|^seeds *=.*|seeds = "3a445bfdbe2d0c8ee82461633aa3af31bc2b4dc0@prod-pnet-seed-node.lavanet.xyz:26656,e593c7a9ca61f5616119d6beb5bd8ef5dd28d62d@prod-pnet-seed-node2.lavanet.xyz:26656,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:19956,eb7832932626c1c636d16e0beb49e0e4498fbd5e@lava-testnet-seed.itrocket.net:20656"|' $HOME/.lava/config/config.toml
# Set minimum gas pricesed-i-e's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.000001ulava"|' $HOME/.lava/config/app.toml# Set pruningsed-i \-e's|^pruning *=.*|pruning = "custom"|' \-e's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \-e's|^pruning-interval *=.*|pruning-interval = "17"|' \ $HOME/.lava/config/app.toml# Download latest chain data snapshotcurl https://snapshots-testnet.unitynodes.com/lava-testnet-2/lava-testnet-2-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.lava
# Create a servicesudotee/etc/systemd/system/lavad.service>/dev/null<<EOF[Unit]Description=Lava node serviceAfter=network-online.target[Service]User=$USERExecStart=$(which lavad) startRestart=on-failureRestartSec=10LimitNOFILE=65535[Install]WantedBy=multi-user.targetEOFsudosystemctldaemon-reloadsudosystemctlenablelavad.service# Start the service and check the logssudosystemctlstartlavad.servicesudojournalctl-ulavad.service-f-ocat
📝 Create Validator
1️⃣ Create wallet
lavadkeysaddwallet
Save all information after entering the command, without this you will not be able to restore data to the wallet. SAVE SEED PHRASE (12 words).