diff --git a/src/modules/[chain]/statesync/index.vue b/src/modules/[chain]/statesync/index.vue
index aa397c84..57bd932e 100644
--- a/src/modules/[chain]/statesync/index.vue
+++ b/src/modules/[chain]/statesync/index.vue
@@ -19,17 +19,10 @@ if(height.value > 2000) {
hash.value = toHex(fromBase64(res.block_id.hash)).toUpperCase()
})
}
-const state = computed(() => {
- const rpcs = blockchain.current?.endpoints?.rpc
+const rpcs = computed(() => {
+ return blockchain.current?.endpoints?.rpc
?.map((x) => x.address)
.join(',');
- return `[statesync]
-enable = true
-rpc_servers = "${rpcs}"
-trust_height = ${height.value || 'loading'}
-trust_hash = "${hash.value}"
-trust_period = "168h" # 2/3 of unbonding time"
-`;
});
const appName = computed(() => {
@@ -77,7 +70,17 @@ onMounted(() => {
We can configure Tendermint to use state sync in
$DAEMON_HOME/config/config.toml.
-
[state-sync]
+ enable = true
+
+ rpc_servers = "{{ rpcs }}"
+ trust_height = {{ height }}
+ trust_hash = "{{hash}}"
+
+ # 2/3 of unbonding time
+ trust_period = "168h"
+ {{ appName }} start
[state-sync]
+ # snapshot-interval specifies the block interval at which local state sync snapshots are
+ # taken (0 to disable). Must be a multiple of pruning-keep-every.
+ snapshot-interval = 1000
+
+ # snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). Each snapshot is about 500MiB
+ snapshot-keep-recent = 2
+ # | Blockchain | Validator | -Missing Blocks | Signed Blocks | Last Jailed Time | Tombstoned | +Missing Blocks | +|
---|---|---|---|---|---|---|---|---|
{{ i+1 }} | {{ v.chainName }} | {{ v.v.name }} | -{{ v.sigingInfo?.missed_blocks_counter }} | {{ Number(v.sigingInfo.index_offset) - Number(v.sigingInfo.start_height) }} |
@@ -164,6 +172,8 @@ function color(v: string) {
|
{{ v.sigingInfo?.tombstoned }} | +{{ v.sigingInfo?.missed_blocks_counter }} | +
Validator | |
---|---|
+ | |