Skip to content

Change unused address output to list - #355

Open
emma31-dev wants to merge 2 commits into
bitcoindevkit:masterfrom
emma31-dev:feat/list-multiple-adddresses
Open

emma31-dev wants to merge 2 commits into
bitcoindevkit:masterfrom
emma31-dev:feat/list-multiple-adddresses

Conversation

@emma31-dev

Copy link
Copy Markdown

Description

This change updates the UnusedAddressCommand to return all unused external addresses rather than only the next one. Previously, the command called Wallet::next_unused_address and returned a single AddressResult, which could be misleading if multiple addresses had already been revealed but not yet used. The output type is now ListResult<AddressResult>, populated by iterating over Wallet::list_unused_addresses on the external keychain. This gives users a complete picture of all addresses awaiting use, making the command more useful for wallet inspection and reducing the risk of address reuse caused by incomplete visibility. This pr solves issue #349 opened by me.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

Return all unused external addresses instead of only the next
one, wrapping results in ListResult.

This branch has not been deployed

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant