-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[qa] Add test for rescan feature of wallet key import RPCs #9331
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
Conversation
Covers importaddress, importpubkey, importprivkey, and importmulti RPCs.
maflcko
left a comment
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.
Concept ACK
qa/rpc-tests/import-rescan.py
Outdated
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.
nit: no wildcard import here.
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.
Removed
6bbbe2c to
7e1d6fd
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.
utACK 7e1d6fd43659e7cbfce2efd5433d79ef0fe687ec
(Sorry for sending nits your way a second time, feel free to not fix them; They are mostly not mandatory for the test to function.)
qa/rpc-tests/import-rescan.py
Outdated
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.
from decimal import Decimalwould be cleaner
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.
Fixed.
qa/rpc-tests/import-rescan.py
Outdated
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.
You don't have to be too strict about not exceeding 80 chars. I think 120 is preferred, but there does not seem to be a strict rule, so meh.
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.
Thanks, I was just using yapf, but I increased the column width.
qa/rpc-tests/import-rescan.py
Outdated
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.
This probably does not change during the loop, so maybe cache it?
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.
Done.
qa/rpc-tests/import-rescan.py
Outdated
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.
Assert that the transaction pool is empty, after each generate?
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.
Done.
7e1d6fd to
d8c0b9f
Compare
|
Thanks, LGTM |
d8c0b9f [qa] Add test for rescan feature of wallet key import RPCs (Russell Yanofsky)
…port RPCs d8c0b9f [qa] Add test for rescan feature of wallet key import RPCs (Russell Yanofsky)
…port RPCs d8c0b9f [qa] Add test for rescan feature of wallet key import RPCs (Russell Yanofsky)
…port RPCs d8c0b9f [qa] Add test for rescan feature of wallet key import RPCs (Russell Yanofsky)
Test only change.
New test covers importaddress, importpubkey, importprivkey, and importmulti RPC's.
This was originally part of #9137, but I split it off because the test is useful on its own.