Skip to content

Commit 946555d

Browse files
committed
tapdb: catch error on sprout fetching
1 parent 15582a5 commit 946555d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tapdb/asset_minting.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,9 @@ func marshalMintingBatch(ctx context.Context, q PendingAssetStore,
12031203
batch.RootAssetCommitment, err = fetchAssetSprouts(
12041204
ctx, q, dbBatch.RawKey, tapscriptSibling, genesisScript,
12051205
)
1206+
if err != nil {
1207+
return nil, err
1208+
}
12061209

12071210
// Finally, for each asset contained in the root
12081211
// commitment above, we'll fetch the meta reveal for

0 commit comments

Comments
 (0)