File tree 1 file changed +8
-4
lines changed
engine/access/rpc/backend
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,15 @@ func (b *backendTransactions) GetTransactionResult(
350
350
return txResult , nil
351
351
}
352
352
353
- // retrieveBlock function returns a block based on the input argument. The block ID lookup has the highest priority,
354
- // followed by the collection ID lookup. If both are missing, the default lookup by transaction ID is performed.
353
+ // retrieveBlock function returns a block based on the input arguments.
354
+ // The block ID lookup has the highest priority, followed by the collection ID lookup.
355
+ // If both are missing, the default lookup by transaction ID is performed.
356
+ //
357
+ // If looking up the block based solely on the txID returns not found, then no error is returned.
358
+ //
359
+ // Expected errors:
360
+ // - storage.ErrNotFound if the requested block or collection was not found.
355
361
func (b * backendTransactions ) retrieveBlock (
356
- // the requested block or collection was not found. If looking up the block based solely on the txID returns
357
- // not found, then no error is returned.
358
362
blockID flow.Identifier ,
359
363
collectionID flow.Identifier ,
360
364
txID flow.Identifier ,
You can’t perform that action at this time.
0 commit comments