RPC, API, gRPC
gRPC:
galactica-testnet-grpc.itrocket.net:443
peers:
c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-peer.itrocket.net:11656
seeds:
52ccf467673f93561c9d5dd4434def32ef2cd7f3@galactica-testnet-seed.itrocket.net:46656
live peers: (0 active)
PEERS="c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-peer.itrocket.net:11656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.galactica/config/config.toml
peers scanner:
PEERS="[email protected]:12956,27fc47bc018e1327eddfe99092cc64b3bc594bf9@galactica.rpc.t.anode.team:26756,[email protected]:60656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:13156,[email protected]:13456,[email protected]:26656,c217be3b7bc65fd74d9c3fa59e593518b8211012@galactica-testnet-rpc.stakerhouse.com:13156,c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-rpc.itrocket.net:11656,[email protected]:13456,03d3c773e52c46274e35f3a36a7644e7f2ff37be@rpc.galactica.aknodes.net:35656,[email protected]:46656,[email protected]:35106"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.galactica/config/config.toml
addrbook: (upd 1h)
wget -O $HOME/.galactica/config/addrbook.json https://server-4.itrocket.net/testnet/galactica/addrbook.json
genesis:
wget -O $HOME/.galactica/config/genesis.json https://server-4.itrocket.net/testnet/galactica/genesis.json
Snapshot
## Snapshot is not available yet
State Sync
If you don't want to wait for a long synchronization you can use:
sudo systemctl stop galacticad
cp $HOME/.galactica/data/priv_validator_state.json $HOME/.galactica/priv_validator_state.json.backup
galacticad tendermint unsafe-reset-all --home $HOME/.galactica
peers="c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-peer.itrocket.net:11656"
SNAP_RPC="https://galactica-testnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.galactica/config/config.toml
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 && sleep 2
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/.galactica/config/config.toml
mv $HOME/.galactica/priv_validator_state.json.backup $HOME/.galactica/data/priv_validator_state.json
sudo systemctl restart galacticad && sudo journalctl -u galacticad -f
Wasm
Sorry, this project does not support WebAssembly.