Skip to content

Commit 75be6b2

Browse files
committed
statesync: tune some timeout parameters
Signed-off-by: p4u <[email protected]>
1 parent 73bb2cd commit 75be6b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vochain/start.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ func newTendermint(app *BaseApplication, localConfig *config.VochainCfg) (*comet
166166

167167
tconfig.StateSync.TrustHeight = localConfig.StateSyncTrustHeight
168168
tconfig.StateSync.TrustHash = localConfig.StateSyncTrustHash
169-
tconfig.StateSync.ChunkFetchers = 10
169+
tconfig.StateSync.ChunkFetchers = 5
170+
tconfig.StateSync.ChunkRequestTimeout = 30 * time.Second
171+
tconfig.StateSync.DiscoveryTime = 30 * time.Second
172+
170173
// If StateSync is enabled but parameters are empty, populate them
171174
// fetching params from remote API endpoint
172175
if localConfig.StateSyncFetchParamsFromRPC &&

0 commit comments

Comments
 (0)