i18n: update add en src/modules/[chain]/statesync/

Author: Salman Wahib <hello@sxlmnwb.xyz>
Co-authored-by: liangping <18786721@qq.com>
This commit is contained in:
Salman Wahib 2023-06-21 12:14:58 +07:00
parent 3b12487dc3
commit 687faf0e3b
2 changed files with 34 additions and 22 deletions

View File

@ -38,37 +38,33 @@ onMounted(() => {
<template> <template>
<div> <div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate mb-2">What's State Sync?</h2> <h2 class="card-title truncate mb-2">{{ $t('statesync.title') }}</h2>
<div class="text-sm"> <div class="text-sm">
The Tendermint Core 0.34 release includes support for state sync, which {{ $t('statesync.description') }}
allows a new node to join a network by fetching a snapshot of the
application state at a recent height instead of fetching and replaying
all historical blocks. This can reduce the time needed to sync with the
network from days to minutes. Click
<a <a
class="text-primary" class="text-primary lowercase"
href="https://blog.cosmos.network/cosmos-sdk-state-sync-guide-99e4cf43be2f" href="https://blog.cosmos.network/cosmos-sdk-state-sync-guide-99e4cf43be2f"
>here</a >{{ $t('statesync.here') }}&nbsp;</a
> >
for more infomation. <a
class="lowercase">
{{ $t('statesync.for_more_info') }}.</a>
</div> </div>
</div> </div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate mb-2"> <h2 class="card-title truncate mb-2">
Starting New Node From State Sync {{ $t('statesync.title_2') }}
</h2> </h2>
<div class="text-sm"> <div class="text-sm">
1. Install Binary ({{ appName }} Version: 1. {{ $t('statesync.text_1') }} ({{ appName }} {{ $t('statesync.version') }}:
{{ nodeInfo.application_version?.version || '' }}) {{ nodeInfo.application_version?.version || '' }})
<br /> <br />
We need to install the binary first and make sure that the version is {{ $t('statesync.text_1_1') }}.
the one currently in use on mainnet.
<br /> <br />
<br /> <br />
2. Enable State Sync<br /> 2. {{ $t('statesync.text_2') }}<br />
We can configure Tendermint to use state sync in {{ $t('statesync.text_2_1') }}.
$DAEMON_HOME/config/config.toml.
<br /><br /> <br /><br />
<div class="mockup-code bg-base-200 my-2"> <div class="mockup-code bg-base-200 my-2">
<pre data-prefix=">"><code class="text-gray-800 dark:invert">[state-sync]</code></pre> <pre data-prefix=">"><code class="text-gray-800 dark:invert">[state-sync]</code></pre>
@ -82,20 +78,19 @@ onMounted(() => {
<pre data-prefix=">"><code class="text-gray-800 dark:invert">trust_period = "168h"</code></pre> <pre data-prefix=">"><code class="text-gray-800 dark:invert">trust_period = "168h"</code></pre>
</div> </div>
<br /> <br />
3. Start the daemon: <code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} start</code> 3. {{ $t('statesync.text_3') }}: <code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} start</code>
<br /> <br />
If you are resetting node, run {{ $t('statesync.text_3_1') }}
<code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} unsafe-reset-all</code> or <code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} unsafe-reset-all</code> or
<code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} tendermint unsafe-reset-all --home ~/.HOME</code> <code class="bg-base-200 text-gray-600 px-2 py-px mx-1 rounded shadow">{{ appName }} tendermint unsafe-reset-all --home ~/.HOME</code>
before you start the daemon. {{ $t('statesync.text_3_2') }}.
</div> </div>
</div> </div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded shadow">
<h2 class="card-title truncate mb-2">Enable Snapshot For State Sync</h2> <h2 class="card-title truncate mb-2">{{ $t('statesync.title_3') }}</h2>
<div class="text-sm"> <div class="text-sm">
To make state sync works, we can enable snapshot in {{ $t('statesync.text_title_3') }}
$DAEMON_HOME/config/app.toml
<br /><br /> <br /><br />
<div class="mockup-code bg-base-200 my-2"> <div class="mockup-code bg-base-200 my-2">
<pre data-prefix=">"><code class="text-gray-800 dark:invert">[state-sync]</code></pre> <pre data-prefix=">"><code class="text-gray-800 dark:invert">[state-sync]</code></pre>

View File

@ -201,5 +201,22 @@
"hex_addr": "Hex Address", "hex_addr": "Hex Address",
"signer_addr": "Signer Address", "signer_addr": "Signer Address",
"consensus_pub_key": "Consensus Public Key" "consensus_pub_key": "Consensus Public Key"
},
"statesync": {
"title": "What's State Sync?",
"title_2": "Starting New Node From State Sync",
"title_3": "Enable Snapshot For State Sync",
"description": "The Tendermint Core 0.34 release includes support for state sync, which allows a new node to join a network by fetching a snapshot of the application state at a recent height instead of fetching and replaying all historical blocks. This can reduce the time needed to sync with the network from days to minutes. Click",
"here": "Here",
"version": "Version",
"for_more_info": "For more infomation",
"text_1": "Install Binary",
"text_1_1": "We need to install the binary first and make sure that the version is the one currently in use on mainnet",
"text_2": "Enable State Sync",
"text_2_1": "We can configure Tendermint to use state sync in $DAEMON_HOME/config/config.toml",
"text_3": "Start the daemon",
"text_3_1": "If you are resetting node, run",
"text_3_2": "before you start the daemon",
"text_title_3": "To make state sync works, we can enable snapshot in $DAEMON_HOME/config/app.toml"
} }
} }