// CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses.
CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses.
// CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses .
func (c *Inspector) CheckPolicy(anchorID string) error {
	anchorEvent, err := c.AnchorEventStore.Get(anchorID)
	if err != nil {
		return fmt.Errorf("get anchor event: %w", err)
	}
	witnessesIRI, err := c.getAdditionalWitnesses(anchorEvent.Index().String())
	if err != nil {
		return fmt.Errorf("failed to get additional witnesses: %w", err)
	}
	witnessesIRI = append(witnessesIRI, vocab.PublicIRI)
	err = c.postOfferActivity(anchorEvent, witnessesIRI)
	if err != nil {
		return fmt.Errorf("failed to post new offer activity to additional witnesses for anchor event %s: %w",
			anchorEvent.Index(), err)
	}
	return nil
}
func ( c * Inspector ) CheckPolicy ( anchorID string ) error { anchorEvent , err := c . AnchorEventStore . Get ( anchorID ) if err != nil { return fmt . Errorf ( " " , err ) } witnessesIRI , err := c . getAdditionalWitnesses ( anchorEvent . Index ( ) . String ( ) ) if err != nil { return fmt . Errorf ( " " , err ) } witnessesIRI = append ( witnessesIRI , vocab . PublicIRI ) err = c . postOfferActivity ( anchorEvent , witnessesIRI ) if err != nil { return fmt . Errorf ( " " , anchorEvent . Index ( ) , err ) } return nil }
CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses.
CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses .
// send an offer activity to additional witnesses