Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TxFilterAcceptAll = func(int) bool { return true }
TxFilterAcceptAll accepts all transactions
Functions ¶
func GetDataToSign ¶
GetDataToSign appends the block number, Tx Flags, and the serialized identity into a byte buffer to be signed by the validator.
Types ¶
type PolicyEvaluator ¶
PolicyEvaluator evaluates the validation policy
func (*PolicyEvaluator) GetTxFilter ¶
func (p *PolicyEvaluator) GetTxFilter(block *cb.Block) TxFilter
GetTxFilter returns the transaction filter that determines whether or not the local peer should validate the transaction at a given index.
func (*PolicyEvaluator) GetValidatingPeers ¶
GetValidatingPeers returns the set of peers that are involved in validating the given block
func (*PolicyEvaluator) ValidateResults ¶
func (p *PolicyEvaluator) ValidateResults(results []*validationresults.Results) error
ValidateResults validates that the given results have come from a reliable source and that the validation policy has been satisfied.
Click to show internal directories.
Click to hide internal directories.