Documentation ¶
Index ¶
- Constants
- func IntegrityCheck(receipt *flow.ExecutionReceipt) (flow.StateCommitment, flow.StateCommitment, error)
- func IsMissingPreviousResultError(err error) bool
- func NewMissingPreviousResultError(previousResultID flow.Identifier) error
- func NewReceiptValidator(state protocol.State, index storage.Index, results storage.ExecutionResults, ...) *receiptValidator
- func NewSealValidator(state protocol.State, headers storage.Headers, payloads storage.Payloads, ...) *sealValidator
- type GetPreviousResult
- type MissingPreviousResultError
Constants ¶
View Source
const DefaultRequiredApprovalsForSealValidation = 0
DefaultRequiredApprovalsForSealValidation is the default number of approvals that should be present and valid for each chunk. Setting this to 0 will disable counting of chunk approvals this can be used temporarily to ease the migration to new chunk based sealing. TODO:
- This value is for the happy path (requires just one approval per chunk).
- Full protocol should be +2/3 of all currently staked verifiers.
Variables ¶
This section is empty.
Functions ¶
func IntegrityCheck ¶
func IntegrityCheck(receipt *flow.ExecutionReceipt) (flow.StateCommitment, flow.StateCommitment, error)
check the receipt's data integrity by checking its result has both final statecommitment and initial statecommitment
func IsMissingPreviousResultError ¶ added in v0.14.1
IsMissingPreviousResultError returns whether the given error is an MissingPreviousResultError error
func NewMissingPreviousResultError ¶ added in v0.14.1
func NewMissingPreviousResultError(previousResultID flow.Identifier) error
func NewReceiptValidator ¶
Types ¶
type GetPreviousResult ¶
type GetPreviousResult func(*flow.ExecutionResult) (*flow.ExecutionResult, error)
Functor that is used to retrieve parent of ExecutionResult.
type MissingPreviousResultError ¶ added in v0.14.1
type MissingPreviousResultError struct {
// contains filtered or unexported fields
}
func (MissingPreviousResultError) Error ¶ added in v0.14.1
func (e MissingPreviousResultError) Error() string
func (MissingPreviousResultError) Unwrap ¶ added in v0.14.1
func (e MissingPreviousResultError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.