Report correction repair operations and outcomes
This commit is contained in:
@@ -7,9 +7,10 @@ package outcomes
|
||||
type OperationKind string
|
||||
|
||||
const (
|
||||
OperationProposal OperationKind = "proposal"
|
||||
OperationValidation OperationKind = "validation"
|
||||
OperationValidationInput OperationKind = "validation_input"
|
||||
OperationProposal OperationKind = "proposal"
|
||||
OperationCorrectionRepair OperationKind = "correction_repair"
|
||||
OperationValidation OperationKind = "validation"
|
||||
OperationValidationInput OperationKind = "validation_input"
|
||||
)
|
||||
|
||||
// Reference is the stable processing identity of an operation. Proposal indices
|
||||
@@ -22,6 +23,8 @@ type Reference struct {
|
||||
ModuleInstance string `json:"module_instance"`
|
||||
SectionIndex int `json:"section_index"`
|
||||
Kind OperationKind `json:"operation"`
|
||||
ProposalIndex *int `json:"proposal_index,omitempty"`
|
||||
RepairAttempt *int `json:"repair_attempt,omitempty"`
|
||||
ValidatorName string `json:"validator_name,omitempty"`
|
||||
ValidatorOrder *int `json:"validator_order,omitempty"`
|
||||
BatchIndex *int `json:"batch_index,omitempty"`
|
||||
@@ -61,6 +64,7 @@ const (
|
||||
type RecoveryReason string
|
||||
|
||||
const (
|
||||
RecoveryCorrectionRevised RecoveryReason = "correction_revised"
|
||||
RecoveryOutputRepaired RecoveryReason = "output_repaired"
|
||||
RecoveryServiceRecovered RecoveryReason = "service_recovered"
|
||||
RecoveryProposalsFiltered RecoveryReason = "proposals_filtered"
|
||||
|
||||
Reference in New Issue
Block a user