mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
Fixes (#107)
This commit is contained in:
committed by
GitHub
parent
9944a3cc48
commit
bcd66d7ae7
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user