Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not index request by receiving address #7938

Merged
merged 2 commits into from Sep 2, 2022
Merged

Conversation

ecdsa
Copy link
Member

@ecdsa ecdsa commented Aug 15, 2022

Do not index requests by address.
Instead, use the same get_id method as for invoices.
wallet: in create_request, reuse use addresses of expired requests (fixes #7927)
Separate wallet.get_request and wallet.get_request_by_addr, which takes an address

Note that expired requests in wallet._requests_addr_to_key get overwritten when a new one is added

electrum/invoices.py Outdated Show resolved Hide resolved
electrum/wallet.py Outdated Show resolved Hide resolved
electrum/wallet.py Outdated Show resolved Hide resolved
@ecdsa ecdsa force-pushed the no_addr_keys_for_requests branch 5 times, most recently from b4199cb to 9c65cd7 Compare August 29, 2022 10:58
@ecdsa ecdsa force-pushed the no_addr_keys_for_requests branch 4 times, most recently from 5760e79 to 898e1ba Compare September 2, 2022 08:33
Replace get_key_for_outgoing_invoice, get_key_for_incoming_request
with Invoice.get_id()

When a new request is created, reuse addresses of expired requests (fixes #7927)

The API is changed for the following commands:
 get_request, get_invoice,
 list_requests, list_invoices,
 delete_request, delete_invoice
@ecdsa ecdsa merged commit 14e96f4 into master Sep 2, 2022
@ecdsa ecdsa deleted the no_addr_keys_for_requests branch September 3, 2022 16:41
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_request command used to reuse addresses of expired payment requests but not anymore
2 participants