@@ -16,6 +16,8 @@ There are two types of syncing:
16
16
17
17
## Observing syncing progress
18
18
19
+ > ### Note: This section applies to comet users.
20
+
19
21
### Block Sync Metrics
20
22
21
23
- ` blocksync_syncing ` : Indicates whether a node is currently block syncing.
@@ -31,6 +33,7 @@ blocksync:
31
33
version: "v0"
32
34
```
33
35
36
+ - ` version ` : The version of the block sync protocol to use.
34
37
35
38
### State Sync Metrics
36
39
@@ -51,12 +54,39 @@ statesync:
51
54
chunk_fetchers: "4"
52
55
```
53
56
54
- ### Checking if sync is complete
57
+ - ` enable ` : Set to true to enable state sync.
58
+ - ` rpc_servers ` : Comma-separated list of RPC servers for state sync.
59
+ - ` trust_height ` : Block height to trust for state sync.
60
+ - ` trust_hash ` : Block hash to trust for state sync.
61
+ - ` trust_period ` : Trust period for light client verification.
62
+ - ` discovery_time ` : Time to spend discovering snapshots before picking one.
63
+ - ` temp_dir ` : Directory for temporary state sync files.
64
+ - ` chunk_request_timeout ` : Timeout for chunk requests.
65
+ - ` chunk_fetchers ` : Number of concurrent chunk fetchers.
55
66
56
- - Query for the node status using the REST or GRPC API
57
- - Check the ` SyncInfo.CatchingUp ` field
58
- - If the field is ` false ` , then syncing is complete
67
+ ### Checking if sync is complete
59
68
69
+ Query for the node status using the REST or GRPC API:
70
+
71
+ REST example:
72
+ ``` bash
73
+ curl http://localhost:1317/cosmos/base/tendermint/v1beta1/syncing
74
+ ```
75
+
76
+ Expected response:
77
+ ``` json
78
+ {
79
+ "syncing" : false
80
+ }
81
+ ```
82
+
83
+ GRPC example:
84
+ ``` bash
85
+ grpcurl -plaintext localhost:9090 cosmos.base.tendermint.v1beta1.Service/GetSyncing
86
+ ```
87
+
88
+ The response includes ` SyncInfo.CatchingUp ` field
89
+ Syncing is complete when this field is ` false `
60
90
61
91
62
92
0 commit comments