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, hostnode hostnode.HostNode, voteMempool mempool.VoteMempool, coinsMempool mempool.CoinsMempool, actionsMempool mempool.ActionMempool, manager actionmanager.LastActionManager, ks keystore.Keystore) (Proposer, error)
NewProposer creates a new proposer from the parameters.
Click to show internal directories.
Click to hide internal directories.