Skip to content

New RPC command listaddresses - #7800

Merged
rustyrussell merged 10 commits into
ElementsProject:masterfrom
ShahanaFarooqui:rpc-listaddresses
Nov 17, 2024
Merged

New RPC command listaddresses#7800
rustyrussell merged 10 commits into
ElementsProject:masterfrom
ShahanaFarooqui:rpc-listaddresses

Conversation

@ShahanaFarooqui

Copy link
Copy Markdown
Collaborator

Changelog-Added: New rpc listaddresses to list issued addresses from the node.

Closes #7439

Comment thread doc/schemas/lightning-listaddresses.json Outdated
Comment thread wallet/walletrpc.c Outdated
Comment thread wallet/walletrpc.c Outdated
Comment thread contrib/msggen/msggen/schema.json Outdated
Comment thread contrib/msggen/msggen/schema.json Outdated
Comment thread wallet/walletrpc.c Outdated
Comment thread wallet/walletrpc.c Outdated
Comment thread wallet/walletrpc.c Outdated
Comment thread wallet/walletrpc.c
Comment thread wallet/walletrpc.c Outdated
@rustyrussell

Copy link
Copy Markdown
Contributor

Maybe include https://github.com/rustyrussell/lightning/tree/guilt/remember-keytype as a precursor? Though that's untested (might have broken Elements).

Then we need only show address types types actually used, at least from now on!

@ShahanaFarooqui
ShahanaFarooqui force-pushed the rpc-listaddresses branch 9 times, most recently from 7d41a24 to 92be426 Compare November 14, 2024 02:34

@rustyrussell rustyrussell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack 92be426

If we really need those dev fields, I'd rather leave the dev-listaddrs command around, and keep listaddresses clean?

Comment thread wallet/wallet.c Outdated
Comment thread wallet/wallet.h Outdated
Comment thread wallet/walletrpc.c Outdated
@ShahanaFarooqui
ShahanaFarooqui force-pushed the rpc-listaddresses branch 2 times, most recently from 30bb08d to e381553 Compare November 14, 2024 22:29
@ShahanaFarooqui
ShahanaFarooqui force-pushed the rpc-listaddresses branch 3 times, most recently from ba142b8 to 419de06 Compare November 15, 2024 05:12
ShahanaFarooqui and others added 5 commits November 17, 2024 15:40
onchaind used to make its own txs, but doesn't any more.  This
parameter is useless.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Both for HTLC txs and the to-self outputs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: Wallet: Taproot addresses are used for unilateral-close change addresses.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell

Copy link
Copy Markdown
Contributor

Rebased on master with flake fixes, and fixed elements (no P2TR).

Changelog-Added: New rpc `listaddresses` to list issued addresses from the node.
Added a new test for listaddresses rpc.
@rustyrussell
rustyrussell merged commit 2dd0d4c into ElementsProject:master Nov 17, 2024
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.

Add new rpc listaddresses to list all addresses issued by the wallet

4 participants