mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-15 19:56:11 +00:00
statesync: increase chunk priority and robustness (#6582)
This commit is contained in:
+2
-2
@@ -789,8 +789,8 @@ func (cfg *StateSyncConfig) ValidateBasic() error {
|
||||
return fmt.Errorf("invalid trusted_hash: %w", err)
|
||||
}
|
||||
|
||||
if cfg.ChunkRequestTimeout < time.Second {
|
||||
return errors.New("chunk_request_timeout must be least a one second")
|
||||
if cfg.ChunkRequestTimeout < 5*time.Second {
|
||||
return errors.New("chunk_request_timeout must be at least 5 seconds")
|
||||
}
|
||||
|
||||
if cfg.ChunkFetchers <= 0 {
|
||||
|
||||
Reference in New Issue
Block a user