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.
96
110
// The caller must acquire [storage.LockIndexBlockByPayloadGuarantees] and hold it until the database write has been committed.
returnnil, fmt.Errorf("could not look up block: %w", err)
241
+
returnflow.ZeroID, fmt.Errorf("could not look up block: %w", err)
220
242
}
221
243
// CAUTION: a collection can be included in multiple *unfinalized* blocks. However, the implementation
222
244
// assumes a one-to-one map from collection ID to a *single* block ID. This holds for FINALIZED BLOCKS ONLY
223
245
// *and* only in the absence of byzantine collector clusters (which the mature protocol must tolerate).
224
246
// Hence, this function should be treated as a temporary solution, which requires generalization
225
247
// (one-to-many mapping) for soft finality and the mature protocol.
226
-
returnb.ByID(blockID)
248
+
returnblockID, nil
227
249
}
228
250
229
251
// BatchIndexBlockContainingCollectionGuarantees produces mappings from the IDs of [flow.CollectionGuarantee]s to the block ID containing these guarantees.
0 commit comments