diff --git a/src/views/StateSync.vue b/src/views/StateSync.vue index 4b6028c1..149a557f 100644 --- a/src/views/StateSync.vue +++ b/src/views/StateSync.vue @@ -41,17 +41,6 @@ class="my-1" @change="check()" /> - 3. (Optional) Add Snapshot Providers
- To reduce the time of snapshot discovering, we can add providers into persistent_peers in $DAEMON_HOME/config/config.toml. - @@ -117,8 +106,8 @@ snapshot-keep-recent = 2`, const interval = 1000 this.$http.getLatestBlock().then(l => { const { height } = l.block.header - if (height > interval) { - this.$http.getBlockByHeight(Math.trunc(height / interval) * interval).then(x => { + if (height > interval * 3) { + this.$http.getBlockByHeight(Math.trunc((height - 3 * interval) / interval) * interval).then(x => { this.hash = x.block_id.hash this.height = x.block.header.height this.state = `[statesync]