git clone https://github.com/disperze/Juno
cd Juno
git checkout v2.0.0-beta-sync.3
make build && make install
You can follow Uni testnet guide
junod init <moniker-name> --chain-id=uni
Download genesis:
curl -s https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/genesis.json > ~/.juno/config/genesis.json
Add persistent_peers to ~/.juno/config/config.toml
persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656"
Enable and configure state-sync
LATEST_HEIGHT=$(curl -s http://143.244.189.189:26657/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "http://143.244.189.189:26657/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"http://143.244.189.189:26657,http://143.244.189.189:26657\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.juno/config/config.toml
junod start
State sync may take a few minutes