consensus

package
v3.8.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsensusPreVote   = 1
	ConsensusPreCommit = 2
	ConsensusCommit    = 3
)

DO NOT EDIT

Variables

This section is empty.

Functions

This section is empty.

Types

type Consensus

type Consensus struct {
	// contains filtered or unexported fields
}

func MakeConsensus

func MakeConsensus() *Consensus

func (*Consensus) Dispatch

func (c *Consensus) Dispatch(index uint16, p *p2p.Packet)

func (*Consensus) SendCommit

func (c *Consensus) SendCommit(notify *message.SendCommit)

func (*Consensus) SendPrecommit

func (c *Consensus) SendPrecommit(notify *message.SendPrecommit)

func (*Consensus) SendPrevote

func (c *Consensus) SendPrevote(notify *message.SendPrevote)

func (*Consensus) SetActor

func (c *Consensus) SetActor(tid *actor.PID)

func (*Consensus) Start

func (c *Consensus) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL