Skip to content

Commit

Permalink
Merge pull request #1039 from lightninglabs/tapcli-show-leased
Browse files Browse the repository at this point in the history
tapcli: add --show_leased flag to assets list subcommand
  • Loading branch information
Roasbeef authored Jul 23, 2024
2 parents 109d86f + 6b46c59 commit eae7b55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions cmd/tapcli/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var (
assetGroupedAssetName = "grouped_asset"
assetShowWitnessName = "show_witness"
assetShowSpentName = "show_spent"
assetShowLeasedName = "show_leased"
assetShowUnconfMintsName = "show_unconfirmed_mints"
assetGroupKeyName = "group_key"
assetGroupAnchorName = "group_anchor"
Expand Down Expand Up @@ -555,6 +556,10 @@ var listAssetsCommand = cli.Command{
Name: assetShowSpentName,
Usage: "include fully spent assets in the list",
},
cli.BoolFlag{
Name: assetShowLeasedName,
Usage: "include leased assets in the list",
},
cli.BoolFlag{
Name: assetShowUnconfMintsName,
Usage: "include freshly minted and not yet confirmed " +
Expand All @@ -574,6 +579,7 @@ func listAssets(ctx *cli.Context) error {
resp, err := client.ListAssets(ctxc, &taprpc.ListAssetRequest{
WithWitness: ctx.Bool(assetShowWitnessName),
IncludeSpent: ctx.Bool(assetShowSpentName),
IncludeLeased: ctx.Bool(assetShowLeasedName),
IncludeUnconfirmedMints: ctx.Bool(assetShowUnconfMintsName),
})
if err != nil {
Expand Down
5 changes: 3 additions & 2 deletions tapchannel/aux_funding_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,9 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
case <-fundingState.fundingFinalizedSignal:

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

case <-f.Quit:
}
Expand Down

0 comments on commit eae7b55

Please sign in to comment.