MCPcopy Create free account
hub / github.com/DNAProject/DNA / BlockRange

Method BlockRange

validator/increment/increment.go:58–62  ·  view source on GitHub ↗

BlockRange returns the block range [start, end) this validator can check

()

Source from the content-addressed store, hash-verified

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

Callers 5

TimeoutMethod · 0.80
processProposalMsgMethod · 0.80
validHeightMethod · 0.80
makeBlockMethod · 0.80

Calls 1

blockRangeMethod · 0.95

Tested by

no test coverage detected