-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add height to importpubkey for rescan #3102
Add height to importpubkey for rescan #3102
Conversation
015ce1c
to
ba5379e
Compare
I'm moving this to draft for now, because I want to squash a bunch of commits before merge. When this design meets the approval of others, I'll squash and mark ready for final review. |
I like this design 👍 |
1102310
to
f3dbf6f
Compare
f3dbf6f
to
20727f1
Compare
I understand that I should attempt to import a pubkey for rescan but would be your best suggestion for evaluation/testing of this enhancement @chromatic? If this does what I think it does, this is a very cool feature to have! ❤️ |
I should add some automated tests for this. I think the best way to test this manually is to:
|
4aa3ada
to
2e7ba9e
Compare
Rebased and finished off the tests. I'm happy to squash the tests into the implementation commit or leave them separate; no preference. |
Built and tested on |
50c9baf
to
563370d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK
Tested ACK - on Ubuntu 22.04
Needs a squash.
This adds two helper functions. One function gets a height parameter from the incoming RPC request. The other performs the scanning. We can use both functions for reducing code in other RPC calls that can/should take height parameters and perform rescanning.
563370d
to
7a00fb1
Compare
Squashed and rebased against 1.14.7-dev. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reACK 563370d..7a00fb1
(clean squash)
No description provided.