state

package
v0.0.0-...-25e1a75 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Height int    `json:"height"`
	Data   string `json:"data"`
}

type State

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

func NewState

func NewState(cfg *config.Config) *State

func (*State) Commit

func (s *State) Commit()

func (*State) PreCommit

func (s *State) PreCommit()

func (*State) Propose

func (s *State) Propose()

func (*State) ReceiveMsg

func (s *State) ReceiveMsg(chID byte, msgBytes []byte)

func (*State) ReceivePreCommit

func (s *State) ReceivePreCommit(o *types.PreCommitMessage)

func (*State) ReceivePropose

func (s *State) ReceivePropose(o *types.ProposeMessage)

func (*State) ReceiveVote

func (s *State) ReceiveVote(o *types.VoteMessage)

func (*State) Start

func (s *State) Start()

func (*State) Stop

func (s *State) Stop()

func (*State) Vote

func (s *State) Vote()

Jump to

Keyboard shortcuts

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