1
1
# SGE
2
- [ RPC] ( http:// ) | [ API] ( http:// ) | [ gRPC] ( http:// )
2
+ [ RPC] ( http://sge.srgts.xyz:16657 ) | [ API] ( http://sge.srgts.xyz:1417 ) | [ gRPC] ( http://sge.srgts.xyz:9490 )
3
3
4
4
Let's update and install the necessary packages:
5
5
````
@@ -25,7 +25,7 @@ git fetch --tags
25
25
git checkout v0.0.3
26
26
make install
27
27
````
28
- Let's check the version (current as of December 2022 - v0.0.3 commit: c2f074f15fa895b0d8e67a9d88bfd2b9d9833b2f):
28
+ Let's check the version (current as of January 2023 - v0.0.3 commit: c2f074f15fa895b0d8e67a9d88bfd2b9d9833b2f):
29
29
````
30
30
sged version --long
31
31
````
@@ -40,7 +40,7 @@ Download the current genesis file:
40
40
````
41
41
curl -s https://raw.githubusercontent.com/sge-network/networks/master/sge-testnet-1/genesis.json > $HOME/.sge/config/genesis.json
42
42
````
43
- Let's check sum genesis file (current as of December 2022 - 9a36a608e66fb194f404284c2d65aa5a7eb422b3efbd50869f270dfe65713e5b):
43
+ Let's check sum genesis file (current as of January 2023 - 9a36a608e66fb194f404284c2d65aa5a7eb422b3efbd50869f270dfe65713e5b):
44
44
````
45
45
sha256sum $HOME/.sge/config/genesis.json
46
46
````
@@ -59,6 +59,7 @@ Edit pruning parameter:
59
59
sed -i 's|pruning = "default"|pruning = "custom"|g' $HOME/.sge/config/app.toml
60
60
sed -i 's|pruning-keep-recent = "0"|pruning-keep-recent = "100"|g' $HOME/.sge/config/app.toml
61
61
sed -i 's|pruning-interval = "0"|pruning-interval = "10"|g' $HOME/.sge/config/app.toml
62
+ sed -i 's|^snapshot-interval *=.*|snapshot-interval = 2000|g' $HOME/.sge/config/app.toml
62
63
````
63
64
Create a service file:
64
65
````
@@ -93,8 +94,9 @@ sudo journalctl -u sged -f -o cat
93
94
State Sync:
94
95
````
95
96
sudo systemctl stop sged
97
+ cp $HOME/.sge/data/priv_validator_state.json $HOME/.sge/priv_validator_state.json.backup
96
98
sged tendermint unsafe-reset-all --home $HOME/.sge --keep-addr-book
97
- SNAP_RPC=""
99
+ SNAP_RPC="http://sge.srgts.xyz:16657 "
98
100
99
101
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
100
102
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
@@ -107,5 +109,6 @@ s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
107
109
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
108
110
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.sge/config/config.toml
109
111
112
+ mv $HOME/.sge/priv_validator_state.json.backup $HOME/.sge/data/priv_validator_state.json
110
113
sudo systemctl restart sged && sudo journalctl -u sged -f -o cat
111
114
````
0 commit comments