github.com/koko1123/flow-go-1@v0.29.6/engine/consensus/approvals/orphan_assignment_collector.go (about)

     1  package approvals
     2  
     3  import (
     4  	"github.com/koko1123/flow-go-1/engine/consensus"
     5  	"github.com/koko1123/flow-go-1/model/flow"
     6  )
     7  
     8  // OrphanAssignmentCollector is an AssignmentCollectorState with the fixed `ProcessingStatus` of `Orphaned`.
     9  type OrphanAssignmentCollector struct {
    10  	AssignmentCollectorBase
    11  }
    12  
    13  func NewOrphanAssignmentCollector(collectorBase AssignmentCollectorBase) AssignmentCollectorState {
    14  	return &OrphanAssignmentCollector{
    15  		AssignmentCollectorBase: collectorBase,
    16  	}
    17  }
    18  
    19  func (oc *OrphanAssignmentCollector) ProcessingStatus() ProcessingStatus { return Orphaned }
    20  func (oc *OrphanAssignmentCollector) CheckEmergencySealing(consensus.SealingObservation, uint64) error {
    21  	return nil
    22  }
    23  func (oc *OrphanAssignmentCollector) RequestMissingApprovals(consensus.SealingObservation, uint64) (uint, error) {
    24  	return 0, nil
    25  }
    26  func (oc *OrphanAssignmentCollector) ProcessIncorporatedResult(*flow.IncorporatedResult) error {
    27  	return nil
    28  }
    29  func (oc *OrphanAssignmentCollector) ProcessApproval(*flow.ResultApproval) error {
    30  	return nil
    31  }