Skip to content

Latest commit

 

History

History
 
 

meme-1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Explorers

PingPub - https://explorer.stake-take.com/meme/staking

In this guide, we have made setting up a node as easy as possible

curl -s https://raw.githubusercontent.com/StakeTake/guidecosmos/main/meme/meme-1/meme > meme.sh && chmod +x meme.sh && ./meme.sh

To install, you just need to take the script and go through the installation order

Please save your mnemonic and backup $HOME/.memed/config/priv_validator_key.json

For example mnemonic phrase:

image

Start with state sync

sudo systemctl stop memed
memed unsafe-reset-all --home $HOME/.memed
SEEDS=""; \
PEERS=""; \
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.memed/config/config.toml
wget -O $HOME/.kyve/config/addrbook.json "https://raw.githubusercontent.com/StakeTake/guidecosmos/main/meme/meme-1/addrbook.json"
SNAP_RPC="https://meme-rpc.polkachu.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
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/.memed/config/config.toml
sudo systemctl restart memed && journalctl -u memed -f -o cat