Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateChannel = byte(0x20) DataChannel = byte(0x21) VoteChannel = byte(0x22) VoteSetBitsChannel = byte(0x23) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reactor ¶
type Reactor struct {
p2p.BaseReactor // BaseService + p2p.Switch
// contains filtered or unexported fields
}
Reactor defines a reactor for the consensus service.
func (*Reactor) AddPeer ¶
AddPeer implements Reactor by spawning multiple gossiping goroutines for the peer.
func (*Reactor) GetChannels ¶
func (conR *Reactor) GetChannels() []*p2p.ChannelDescriptor
GetChannels implements Reactor
func (*Reactor) OnStart ¶
OnStart implements BaseService by subscribing to events, which later will be broadcasted to other peers and starting state if we're not in block sync.
func (*Reactor) OnStop ¶
func (conR *Reactor) OnStop()
OnStop implements BaseService by unsubscribing from events and stopping state.
Click to show internal directories.
Click to hide internal directories.