Skip to content

Show all vtxos except forfeited and spent, add option to show all - #1118

Open
Liongrass wants to merge 2 commits into
lightninglabs:mainfrom
Liongrass:listallvtxos
Open

Show all vtxos except forfeited and spent, add option to show all#1118
Liongrass wants to merge 2 commits into
lightninglabs:mainfrom
Liongrass:listallvtxos

Conversation

@Liongrass

Copy link
Copy Markdown

This pull request addresses #1116

As of now, wavecli ark vtxos list only shows live VTXOs. This means that any application building on that RPC call has to make repeated RPC calls to fetch all VTXOs, regarding of their status. By default, any VTXO that isn't live appears to be simply missing.

Available statuses include: live, pending_forfeit, forfeiting, forfeited, spent, unilateral_exit, failed, spending

In the first commit, we expand this to all VTXOs, except forfeited and spent VTXOs. I believe this best represents the VTXOs a user would care about.

In the second commit, we add a new --show-all flag that gives the user or application the option to query all VTXOs, regardless of their status, and then filter themselves.

Future work to consider:

  • Allow multiple --status flags to be passed
  • Distinguish between successful/completed unilateral exit, and unilateral exit in progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant