Skip to content

Commit eae7b55

Browse files
authored
Merge pull request #1039 from lightninglabs/tapcli-show-leased
tapcli: add --show_leased flag to assets list subcommand
2 parents 109d86f + 6b46c59 commit eae7b55

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cmd/tapcli/assets.go

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ var (
4747
assetGroupedAssetName = "grouped_asset"
4848
assetShowWitnessName = "show_witness"
4949
assetShowSpentName = "show_spent"
50+
assetShowLeasedName = "show_leased"
5051
assetShowUnconfMintsName = "show_unconfirmed_mints"
5152
assetGroupKeyName = "group_key"
5253
assetGroupAnchorName = "group_anchor"
@@ -555,6 +556,10 @@ var listAssetsCommand = cli.Command{
555556
Name: assetShowSpentName,
556557
Usage: "include fully spent assets in the list",
557558
},
559+
cli.BoolFlag{
560+
Name: assetShowLeasedName,
561+
Usage: "include leased assets in the list",
562+
},
558563
cli.BoolFlag{
559564
Name: assetShowUnconfMintsName,
560565
Usage: "include freshly minted and not yet confirmed " +
@@ -574,6 +579,7 @@ func listAssets(ctx *cli.Context) error {
574579
resp, err := client.ListAssets(ctxc, &taprpc.ListAssetRequest{
575580
WithWitness: ctx.Bool(assetShowWitnessName),
576581
IncludeSpent: ctx.Bool(assetShowSpentName),
582+
IncludeLeased: ctx.Bool(assetShowLeasedName),
577583
IncludeUnconfirmedMints: ctx.Bool(assetShowUnconfMintsName),
578584
})
579585
if err != nil {

tapchannel/aux_funding_controller.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,9 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
11261126
case <-fundingState.fundingFinalizedSignal:
11271127

11281128
case <-time.After(ackTimeout):
1129-
return nil, fmt.Errorf("didn't receive funding ack after %v",
1130-
ackTimeout)
1129+
return nil, fmt.Errorf("didn't receive funding ack after %v: "+
1130+
"remote node didn't respond in time or doesn't "+
1131+
"support Taproot Asset Channels", ackTimeout)
11311132

11321133
case <-f.Quit:
11331134
}

0 commit comments

Comments
 (0)