mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 13:26:23 +00:00
statesync: increase chunk priority and robustness (#6582)
This commit is contained in:
@@ -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