Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the consensus service.
func New ¶
func New(blockChannel chan *types.Block, consensus *consensus.Consensus, startChan chan struct{}) *Service
New returns consensus service.
func (*Service) NotifyService ¶
NotifyService notify service
func (*Service) SetMessageChan ¶
SetMessageChan sets up message channel to service.
func (*Service) StartService ¶
func (s *Service) StartService()
StartService starts consensus service.
Click to show internal directories.
Click to hide internal directories.