This commit is contained in:
Pietralberto Mazza
2024-02-13 17:38:55 +01:00
committed by GitHub
parent 9944a3cc48
commit bcd66d7ae7
3 changed files with 17 additions and 13 deletions

View File

@@ -65,8 +65,8 @@ func (c *Config) Validate() error {
if !supportedScanners.supports(c.BlockchainScannerType) {
return fmt.Errorf("blockchain scanner type not supported, please select one of: %s", supportedScanners)
}
if c.RoundInterval < 5 {
return fmt.Errorf("invalid round interval, must be at least 5 seconds")
if c.RoundInterval < 2 {
return fmt.Errorf("invalid round interval, must be at least 2 seconds")
}
if c.Network.Name != "liquid" && c.Network.Name != "testnet" {
return fmt.Errorf("invalid network, must be either liquid or testnet")