From 946555d0e3781ead0a969687bb56c6d0b3d7c065 Mon Sep 17 00:00:00 2001 From: Jonathan Harvey-Buschel Date: Tue, 17 Sep 2024 12:38:10 -0400 Subject: [PATCH] tapdb: catch error on sprout fetching --- tapdb/asset_minting.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tapdb/asset_minting.go b/tapdb/asset_minting.go index 5c22a36dc..33f1e75a5 100644 --- a/tapdb/asset_minting.go +++ b/tapdb/asset_minting.go @@ -1203,6 +1203,9 @@ func marshalMintingBatch(ctx context.Context, q PendingAssetStore, batch.RootAssetCommitment, err = fetchAssetSprouts( ctx, q, dbBatch.RawKey, tapscriptSibling, genesisScript, ) + if err != nil { + return nil, err + } // Finally, for each asset contained in the root // commitment above, we'll fetch the meta reveal for