@@ -25,7 +25,7 @@ func IsNodeAuthorizedAt(snapshot Snapshot, id flow.Identifier) (bool, error) {
2525// IsNodeAuthorizedWithRoleAt returns whether the node with the given ID is a valid
2626// un-ejected network participant with the specified role as of the given state snapshot.
2727// Expected errors during normal operations:
28- // - storage.ErrNotFound if snapshot references an unknown block
28+ // - state.ErrUnknownSnapshotReference if snapshot references an unknown block
2929//
3030// All other errors are unexpected and potential symptoms of internal state corruption.
3131func IsNodeAuthorizedWithRoleAt (snapshot Snapshot , id flow.Identifier , role flow.Role ) (bool , error ) {
@@ -41,7 +41,7 @@ func IsNodeAuthorizedWithRoleAt(snapshot Snapshot, id flow.Identifier, role flow
4141// CheckNodeStatusAt returns whether the node with the given ID is a valid identity at the given
4242// state snapshot, and satisfies all checks.
4343// Expected errors during normal operations:
44- // - storage.ErrNotFound if snapshot references an unknown block
44+ // - state.ErrUnknownSnapshotReference if snapshot references an unknown block
4545//
4646// All other errors are unexpected and potential symptoms of internal state corruption.
4747func CheckNodeStatusAt (snapshot Snapshot , id flow.Identifier , checks ... flow.IdentityFilter ) (bool , error ) {
@@ -93,7 +93,7 @@ func PreviousEpochExists(snap Snapshot) (bool, error) {
9393// FindGuarantors decodes the signer indices from the guarantee, and finds the guarantor identifiers from protocol state
9494// Expected Error returns during normal operations:
9595// - signature.InvalidSignerIndicesError if `signerIndices` does not encode a valid set of collection guarantors
96- // - storage.ErrNotFound if the guarantee's ReferenceBlockID is not found
96+ // - state.ErrUnknownSnapshotReference if guarantee references an unknown block
9797// - protocol.ErrNextEpochNotCommitted if epoch has not been committed yet
9898// - protocol.ErrClusterNotFound if cluster is not found by the given chainID
9999func FindGuarantors (state State , guarantee * flow.CollectionGuarantee ) ([]flow.Identifier , error ) {
0 commit comments