BlockRange returns the block range [start, end) this validator can check
()
| 56 | |
| 57 | // BlockRange returns the block range [start, end) this validator can check |
| 58 | func (self *IncrementValidator) BlockRange() (start uint32, end uint32) { |
| 59 | self.mutex.Lock() |
| 60 | defer self.mutex.Unlock() |
| 61 | return self.blockRange() |
| 62 | } |
| 63 | |
| 64 | func (self *IncrementValidator) blockRange() (start uint32, end uint32) { |
| 65 | return self.baseHeight, self.baseHeight + uint32(len(self.blocks)) |
no test coverage detected