types

package
v0.0.0-...-b6e904f Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProposalMsg

type ProposalMsg struct {
	Round         int64
	ID            []byte
	JustifyParent []byte
	PeerID        string
	Timestamp     int64

	PublicKey []byte
	Signature []byte
}

func (*ProposalMsg) String

func (p *ProposalMsg) String() string

func (*ProposalMsg) Validate

func (p *ProposalMsg) Validate() error

type TimeoutMsg

type TimeoutMsg struct {
	Round       int64
	Index       int64
	ParentRound int64
	ParentID    []byte
	SendID      string
	Timestamp   int64

	PublicKey []byte
	Signature []byte
}

func (*TimeoutMsg) String

func (t *TimeoutMsg) String() string

func (*TimeoutMsg) Validate

func (t *TimeoutMsg) Validate() error

type VoteMsg

type VoteMsg struct {
	Round       int64
	ID          []byte
	ParentRound int64
	ParentID    []byte
	CommitInfo  []byte
	SendID      string
	To          string
	Timestamp   int64

	PublicKey []byte
	Signature []byte
}

func (*VoteMsg) String

func (v *VoteMsg) String() string

func (*VoteMsg) Validate

func (v *VoteMsg) Validate() error

Jump to

Keyboard shortcuts

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