proposer

package
v0.0.0-...-b9de96a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proposer

type Proposer interface {
	NewTip(_ *chainindex.BlockRow, block *primitives.Block, newState state.State, _ []*primitives.EpochReceipt)
	ProposerSlashingConditionViolated(_ *primitives.ProposerSlashing)
	ProposeBlocks()
	VoteForBlocks()
	Start() error
	Stop()
	GetCurrentSlot() uint64
	Voting() bool
	Proposing() bool
	Keystore() keystore.Keystore
}

Proposer is the interface for proposer

func NewProposer

func NewProposer(chain chain.Blockchain, h host.Host, pool mempool.Pool, ks keystore.Keystore) (Proposer, error)

NewProposer creates a new proposer from the parameters.

Jump to

Keyboard shortcuts

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