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 precommits PreCommitRules(vote *protocols.PreCommit) 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
Click to show internal directories.
Click to hide internal directories.