Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafetyError ¶
type SafetyRules ¶
type SafetyRules interface { // Security rules for proposed blocks PrepareBlockRules(block *protocols.PrepareBlock) SafetyError // Security rules for proposed votes PrepareVoteRules(vote *protocols.PrepareVote) SafetyError // Security rules for viewChange ViewChangeRules(vote *protocols.ViewChange) SafetyError // Security rules for qcblock QCBlockRules(block *types.Block, qc *ctypes.QuorumCert) SafetyError }
func NewSafetyRules ¶
func NewSafetyRules(viewState *state.ViewState, blockTree *ctypes.BlockTree, config *ctypes.Config, validatorPool *validator.ValidatorPool) SafetyRules
type VoteRules ¶
type VoteRules interface { // Determine if the resulting vote is allowed to be sent AllowVote(vote *protocols.PrepareVote) VoteError }
func NewVoteRules ¶
Click to show internal directories.
Click to hide internal directories.