Skip to content

Instantly share code, notes, and snippets.

@drbh
Created September 7, 2021 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drbh/8fbe6e5c7990816f666c3da03f05c6f4 to your computer and use it in GitHub Desktop.
Save drbh/8fbe6e5c7990816f666c3da03f05c6f4 to your computer and use it in GitHub Desktop.
How to run a mainnet Terra node
# clone release branch
git clone git@github.com:terra-money/core.git --branch=v0.4.6
# move into dir
cd core
# build it
make install
# check that we have the right version... etc
terrad version --long | head -n 6
# name: terra
# server_name: terrad
# client_name: terracli
# version: 0.4.6
# commit: c39ed2804dbb625c283d1cd11fac8d3bc79ff328
# build_tags: netgo,ledger
# make config dir
mkdir -p ~/.terrad/config
# we'll want to use config vars related to the most recent mainnet deployment columbus-4
# from https://github.com/terra-money/mainnet/tree/master/columbus-4
# clone json for network gen
curl \
https://columbus-genesis.s3-ap-northeast-1.amazonaws.com/columbus-4-genesis.json \
> ~/.terrad/config/genesis.json
# clone json for rpc endpoints (this file is nightly)
curl \
https://network.terra.dev/addrbook.json \
> ~/.terrad/config/addrbook.json
# update config to have columbus-4 seeds
echo '
seeds = "5d9b8ac70000bd4ab1de3ccaf85eb43f8e315146@seed.terra.delightlabs.io:26656,6d8e943c049a80c161a889cb5fcf3d184215023e@public-seed2.terra.dev:26656,87048bf71526fb92d73733ba3ddb79b7a83ca11e@public-seed.terra.dev:26656"
' >> ~/.terrad/config/config.toml
# start it 🏃‍♀️
terrad start --log_level "main:debug,state:debug,*:debug" --trace
# I[2021-09-07|14:23:25.273] starting ABCI with Tendermint module=main
# . . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment