log

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func NewLog

func NewLog() *Log

func (*Log) AddVote

func (log *Log) AddVote(v *vote.Vote) (bool, error)

func (*Log) CPDecidedVoteVoteSet added in v0.15.1

func (log *Log) CPDecidedVoteVoteSet(round int16) *voteset.BinaryVoteSet

func (*Log) CPMainVoteVoteSet added in v0.15.0

func (log *Log) CPMainVoteVoteSet(round int16) *voteset.BinaryVoteSet

func (*Log) CPPreVoteVoteSet added in v0.15.0

func (log *Log) CPPreVoteVoteSet(round int16) *voteset.BinaryVoteSet

func (*Log) CanVote

func (log *Log) CanVote(addr crypto.Address) bool

func (*Log) HasRoundProposal

func (log *Log) HasRoundProposal(round int16) bool

func (*Log) HasVote

func (log *Log) HasVote(h hash.Hash) bool

func (*Log) MoveToNewHeight

func (log *Log) MoveToNewHeight(validators []*validator.Validator)

func (*Log) PrecommitVoteSet

func (log *Log) PrecommitVoteSet(round int16) *voteset.BlockVoteSet

func (*Log) PrepareVoteSet

func (log *Log) PrepareVoteSet(round int16) *voteset.BlockVoteSet

func (*Log) RoundMessages

func (log *Log) RoundMessages(round int16) *Messages

func (*Log) RoundProposal

func (log *Log) RoundProposal(round int16) *proposal.Proposal

func (*Log) SetRoundProposal

func (log *Log) SetRoundProposal(round int16, prop *proposal.Proposal)

type Messages

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

func (*Messages) AllVotes

func (m *Messages) AllVotes() []*vote.Vote

func (*Messages) HasVote

func (m *Messages) HasVote(h hash.Hash) bool

Jump to

Keyboard shortcuts

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