You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// BatchIndexBlockContainingCollectionGuarantees produces mappings from the IDs of [flow.CollectionGuarantee]s to the block ID containing these guarantees.
91
-
// The caller must acquire a storage.LockIndexBlockByPayloadGuarantees lock.
96
+
// The caller must acquire [storage.LockIndexBlockByPayloadGuarantees] and hold it until the database write has been committed.
92
97
//
93
98
// CAUTION: a collection can be included in multiple *unfinalized* blocks. However, the implementation
94
99
// assumes a one-to-one map from collection ID to a *single* block ID. This holds for FINALIZED BLOCKS ONLY
95
100
// *and* only in the absence of byzantine collector clusters (which the mature protocol must tolerate).
96
101
// Hence, this function should be treated as a temporary solution, which requires generalization
97
102
// (one-to-many mapping) for soft finality and the mature protocol.
98
103
//
99
-
// Error returns:
100
-
// - storage.ErrAlreadyExists if any collection guarantee is already indexed
101
-
// - generic error in case of unexpected failure from the database layer or encoding failure.
104
+
// Expected error returns during normal operations:
105
+
// - [storage.ErrAlreadyExists] if any collection guarantee is already indexed
0 commit comments