multi: add labels for static addresses - #1178
GustavoStingelin wants to merge 9 commits into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
ae23a9d to
92270e0
Compare
|
I propose to include the current state of #1139 into this PR, so own label commits go after @hieblmi's commits. Add a note to the PR description not to review the multi-address commits. I attempted to do a rebase using AI, here is my attempt: https://github.com/starius/loop/commits/staticaddr-combined/ It is not functional. Some semantic rebase is needed. For example:
Found some issues in that multi-address + labels branch that I got:
Some of them will be resolved by a proper rebase, but some seem genuine. |
92270e0 to
0537607
Compare
|
just rebased from master |
3172db4 to
af8f2ae
Compare
af8f2ae to
084565d
Compare
|
@hieblmi rebased this on multi-address-core (thanks!). The rebase raised two design questions I'd like to settle before we go further:
|
|
Thanks @GustavoStingelin
I think it is valuable to the user to show these together with the funding outpoitns. The We can then add the fields per entry: What do you think?
Is the intention to find addresses with labels, especially if they don't show up in |
Sounds good 👍
Yes. The main case is a user who generates a few receive addresses but hasn't funded them yet. loop static new always derives a fresh address, so those unfunded addresses don't appear in To keep this PR focused on labels, I'll add |
ad14247 to
5b76079
Compare
|
@hieblmi: review reminder |
084565d to
9108321
Compare
Add the missing space in the shared --label help, and give listswaps its own --label help since there it filters swaps instead of labeling one.
65dfd51 to
91b3073
Compare
Add a label column to static_addresses and a query to update it, and select it wherever deposits and change addresses join their address.
Add a Label field to the static address parameters. It is local metadata and not part of the script or server protocol.
91b3073 to
03027f4
Compare
Read and write address labels in the address store, and load them with deposits and loop-in change addresses.
Add a label to NewStaticAddress, a new UpdateStaticAddressLabel RPC, and labels on unspent deposits and deposit listings.
Label new addresses, relabel them without mutating published address snapshots, and fill in address and funding transaction labels in deposit responses.
Add --label to static new and a static updatelabel command. Also run the static deposit CLI tests serially and cover its funding --label.
Change addresses take the distinct labels of the addresses they spend, joined with ", " up to the label limit.
03027f4 to
d60dc33
Compare
|
Adds local labels for static addresses. Stacked on #1139 (
multi-address-core).loop static new --labellabels a new receive address, andloop static updatelabelchanges or clears a label.loop static listunspentshows each UTXO'saddress_label. Deposits in the deposit, withdrawal and loop-in listings showaddress_labelandfunding_tx_label, the lnd label of the funding transaction.,up to the 500-character limit.--labelhelp text: adds a missing space, and giveslistswapsits own help, since there the flag is a filter.ListStaticAddresses, for finding labeled addresses that haven't been funded yet, will come in a follow-up PR.