types

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsensusMessageTypeUnknown = ConsensusMessageType(iota)

	ConsensusMessageTypePrePrepare
	ConsensusMessageTypePrepare
	ConsensusMessageTypeCommit
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitMessage

type CommitMessage PrepareMessage

type ConsensusMessage

type ConsensusMessage struct {
	Type      ConsensusMessageType
	Blockhash []byte
	Signature []byte
	Block     *types3.Block // it is optional, because not all message types have block included
	From      peer.ID
}

ConsensusMessage is common struct for various consensus message types. It is stored in consensus message log.

type ConsensusMessageType

type ConsensusMessageType uint8

type PrePrepareMessage

type PrePrepareMessage struct {
	Block *types2.Block
}

type PrepareMessage

type PrepareMessage struct {
	Blockhash []byte
	Signature []byte
}

Jump to

Keyboard shortcuts

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