pbft

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNewViewVerifyFailed = errors.New("NewView Verify Failed")
	ErrNewViewNotPossible  = errors.New("NewView: Log has holes")
)

Functions

This section is empty.

Types

type PBFT

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

func NewPBFT

func NewPBFT(c *peer.LocalConfig) *PBFT

func (*PBFT) AsyncCallback

func (p *PBFT) AsyncCallback()

func (*PBFT) Callback

func (p *PBFT) Callback(message peer.ExecCallback)

func (*PBFT) ClearExecutedCommands

func (p *PBFT) ClearExecutedCommands()

func (*PBFT) ClearMsgs

func (p *PBFT) ClearMsgs()

func (*PBFT) Execute

func (p *PBFT) Execute(cmd *commandpb.Command)

func (*PBFT) MakeReady

func (p *PBFT) MakeReady() peer.Ready

func (*PBFT) Request

func (p *PBFT) Request(command *commandpb.Command)

func (*PBFT) Step

func (p *PBFT) Step(message peerpb.Message)

func (*PBFT) Stop

func (p *PBFT) Stop()

func (*PBFT) Tick

func (p *PBFT) Tick()

type Quorum

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

func (*Quorum) Majority

func (q *Quorum) Majority(m *pb.AgreementMessage) bool

Majority quorum satisfied

type VCQuorum

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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