Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the redux-framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the betterdocs domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cyr2lat domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the yandex-metrica domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the teknolab domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mmsteam/public_html/wp-includes/functions.php on line 6121
Bitcanna – MMS
MMS

 

Bitcanna

Info
Websitehttps://www.bitcanna.io/
Explorerhttps://explorer.mms.team/bitcanna
ValidatorMMS
Typemainnet
Chain-idbitcanna-1
Node version3.1.0
TokenBCNA
Denomubcna
Bech32 Prefixbcna
Genesis:
wget https://snapshots.mms.team/bitcanna/mainnet/genesis.json
Addrbook:
wget https://snapshots.mms.team/bitcanna/mainnet/addrbook.json

RPC:

https://rpc-bitcanna.mms.team

gRPC:

https://grpc-bitcanna.mms.team

API:

https://api-bitcanna.mms.team

Seed node:

d37062587a2aba2a5256b7363f722f4acb4b8e2f@seed-node.mms.team:30656

Peer:

d2cb1f04b351e82dada97794d32a468dd71d6a84@peer-bitcanna.mms.team:56104
Snapshot

Block Height: 15568474
Size: 522M
Snapshot time: 2024-09-05 03:04:15
File: snapshot_bcnad_20240905030423.tar.lz4

# Set variables
PROJECT_NAME=bitcanna
PROJECT_TYPE=mainnet
PROJECT_SERVICE=bcnad
PROJECT_BINARY=bcnad
PROJECT_FOLDER=~/.bcna
# Install lz4
sudo apt update
sudo apt-get install snapd lz4 -y
# Disable State Sync
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ${PROJECT_FOLDER}/config/config.toml
# Stop and reset node
sudo systemctl stop ${PROJECT_SERVICE}
cp ${PROJECT_FOLDER}/data/priv_validator_state.json ${PROJECT_FOLDER}/priv_validator_state.json.backup
${PROJECT_BINARY} tendermint unsafe-reset-all --home ${PROJECT_FOLDER} --keep-addr-book
# Download Snapshot
SNAPSHOT_NAME=$(curl -s https://snapshots.mms.team/${PROJECT_NAME}/${PROJECT_TYPE}/ | egrep -o ">snapshot.*\.tar.lz4" | tr -d ">" | tail -n 1)
curl -o - -L https://snapshots.mms.team/${PROJECT_NAME}/${PROJECT_TYPE}/${SNAPSHOT_NAME}  | lz4 -c -d - | tar -x -C ${PROJECT_FOLDER}
# Restore priv_validator_state.json
mv ${PROJECT_FOLDER}/priv_validator_state.json.backup ${PROJECT_FOLDER}/data/priv_validator_state.json
# Restart Node
sudo systemctl restart ${PROJECT_SERVICE}
journalctl -u ${PROJECT_SERVICE} -f
State Sync
# Set variables
PROJECT_NAME=bitcanna
PROJECT_TYPE=mainnet
PROJECT_SERVICE=bcnad
PROJECT_BINARY=bcnad
PROJECT_FOLDER=~/.bcna
SNAP_RPC="https://rpc-bitcanna.mms.team:443"
PEERS="d2cb1f04b351e82dada97794d32a468dd71d6a84@peer-bitcanna.mms.team:56104"
# Stop and reset node
sudo systemctl stop ${PROJECT_SERVICE}
cp ${PROJECT_FOLDER}/data/priv_validator_state.json ${PROJECT_FOLDER}/priv_validator_state.json.backup
${PROJECT_BINARY} tendermint unsafe-reset-all --home ${PROJECT_FOLDER} --keep-addr-book
# Add peer
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ${PROJECT_FOLDER}/config/config.toml
# Configure State Sync
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)
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\"|" ${PROJECT_FOLDER}/config/config.toml
# Restore priv_validator_state.json
mv ${PROJECT_FOLDER}/priv_validator_state.json.backup ${PROJECT_FOLDER}/data/priv_validator_state.json
# Restart Node
sudo systemctl restart ${PROJECT_SERVICE}
journalctl -u ${PROJECT_SERVICE} -f
IBC Relayers

TBA