File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,6 @@ var (
101
101
// ErrAuthorityNotInSet is returned when a precommit within a justification is signed by a key not in the authority set
102
102
ErrAuthorityNotInSet = errors .New ("authority is not in set" )
103
103
104
- // ErrZeroInterval is returned when the grandpa sub-round interval is set to 0
105
- ErrZeroInterval = errors .New ("cannot have zero second interval" )
106
-
107
104
errVoteExists = errors .New ("already have vote" )
108
105
errVoteToSignatureMismatch = errors .New ("votes and authority count mismatch" )
109
106
errInvalidVoteBlock = errors .New ("block in vote is not descendant of previously finalised block" )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import (
38
38
39
39
const (
40
40
finalityGrandpaRoundMetrics = "gossamer/finality/grandpa/round"
41
+ defaultGrandpaInterval = time .Second
41
42
)
42
43
43
44
var (
@@ -147,7 +148,7 @@ func NewService(cfg *Config) (*Service, error) {
147
148
}
148
149
149
150
if cfg .Interval == 0 {
150
- return nil , ErrZeroInterval
151
+ cfg . Interval = defaultGrandpaInterval
151
152
}
152
153
153
154
ctx , cancel := context .WithCancel (context .Background ())
You can’t perform that action at this time.
0 commit comments