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

Method StartEndorseEmptyBlockTimer

consensus/vbft/event_timer.go:257–263  ·  view source on GitHub ↗
(blockNum uint32)

Source from the content-addressed store, hash-verified

255}
256
257func (self *EventTimer) StartEndorseEmptyBlockTimer(blockNum uint32) error {
258 self.lock.Lock()
259 defer self.lock.Unlock()
260
261 log.Infof("server %d started empty endorsing timer for blk %d", self.server.Index, blockNum)
262 return self.startEventTimer(EventEndorseEmptyBlockTimeout, blockNum)
263}
264
265func (self *EventTimer) CancelEndorseEmptyBlockTimer(blockNum uint32) {
266 self.lock.Lock()

Callers 2

processTimerEventMethod · 0.80
endorseBlockMethod · 0.80

Calls 2

startEventTimerMethod · 0.95
InfofFunction · 0.92

Tested by

no test coverage detected