func (op *obcBatch) viewChange(curView uint64) {
	if op.batchTimerActive {
		op.stopBatchTimer()
	}

	reqs := op.complainer.Restart()
	if op.pbft.primary(op.pbft.view) == op.pbft.id {
		for hash, req := range reqs {
			logger.Info("Replica %d queueing request under custody: %s", op.pbft.id, hash)
			op.leaderProcReq(req)
		}
	}
}
// signal when a view-change happened
signal when a view-change happened
// signal when a view - change happened
func (op *obcBatch) viewChange(curView uint64) {
	if op.batchTimerActive {
		op.stopBatchTimer()
	}
	reqs := op.complainer.Restart()
	if op.pbft.primary(op.pbft.view) == op.pbft.id {
		for hash, req := range reqs {
			logger.Info("Replica %d queueing request under custody: %s", op.pbft.id, hash)
			op.leaderProcReq(req)
		}
	}
}
func ( op * obcBatch ) viewChange ( curView uint64 ) { if op . batchTimerActive { op . stopBatchTimer ( ) } reqs := op . complainer . Restart ( ) if op . pbft . primary ( op . pbft . view ) == op . pbft . id { for hash , req := range reqs { logger . Info ( " " , op . pbft . id , hash ) op . leaderProcReq ( req ) } } }
signal when a view-change happened
signal when a view - change happened