Skip to content

Commit 0be95a6

Browse files
committed
tapchannel: add FetchAssetMetaForAsset to AssetSyncer interface
With the address book now implementing that method, we can add it to our AssetSyncer interface so we can query asset meta information during channel funding.
1 parent 9fe32aa commit 0be95a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tapchannel/aux_funding_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ type AssetSyncer interface {
183183
// for issuance proofs.
184184
QueryAssetInfo(ctx context.Context,
185185
id asset.ID) (*asset.AssetGroup, error)
186+
187+
// FetchAssetMetaForAsset attempts to fetch an asset meta based on an
188+
// asset ID.
189+
FetchAssetMetaForAsset(ctx context.Context,
190+
assetID asset.ID) (*proof.MetaReveal, error)
186191
}
187192

188193
// FundingControllerCfg is a configuration struct that houses the necessary

0 commit comments

Comments
 (0)