-
Notifications
You must be signed in to change notification settings - Fork 38.7k
test: Run mempool_updatefromblock even with wallet disabled #21999
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
DariusParvin
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.
obvious concept ACK.
Great work! I left some suggestions/questions
|
Updated with ac8b08b. Let me know if I missed anything! Also, should I roll theses commits up into one, or will they get squashed at merge time? Forgot to sign the first few.
|
|
The changes look good to me! I'm relatively new myself but I think at this stage it would make sense to squash everything into one commit. |
Got it, thank you for your assistance! |
sriramdvt
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.
tACK df07919caa36d1345590010f5552d9e24db2bbde. The test works properly and checks what it is supposed to check. I strongly recommend making these changes for clarity and to maintain forward compatibility with MiniWallet.
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: Replace self.nodes[0] with node
reemuru
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.
tACK df07919. The test works properly and checks what it is supposed to check. I strongly recommend making these changes for clarity and to maintain forward compatibility with MiniWallet.
Thanks for reviewing! Made some changes based on your suggestions.
|
Concept ACK Thanks for posting the profiling data! Definitely agree with more miniwallet usage, especially if it increases test execution speed. I compiled and ran the tests and everything passed, but I would definitely recommend running pip install autopep8
autopep8 --in-place mempool_updatefromblock.pyyou can double check the changes by running |
|
Concept ACK |
oh shoots! never used autopep8 before. will use from now on. Thanks for the tip! (^_^) => 0b7dbeb |
looks great! id suggest squashing into one atomic commit per the contributing guide |
Got it, thanks much! |
|
ACK 446c06a built without wallet, ran the test to verify everything is behaving as expected. also code reviewed to verify the logic of the test is unchanged (strictly a refactor) |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
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.
please don't commit large style changes in the same commit as refactors/features. This makes review harder because it is not clear what is a refactor/style-change/feature
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.
Also I don't think the change here makes the code easier to read (neither for devs nor for scripts and parsers)
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.
Oh shoot, my bad. 😭 Was using some auto-styling tool and must've finger fudged it. Fixed and squashed into 33865a5
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.
Oh shoot, my bad. sob Was using some auto-styling tool and must've finger fudged it. Fixed and squashed into 33865a5
my fault, @reemuru , i gave bad advice. @MarcoFalke is correct: linting (style changes) should be in separate PR's from refactors/features
|
ACK c1c0768 built without wallet and ran test |
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.
here are still style changes mixed in
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.
why is this changed?
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.
Ah ok, apologies for the noise. Will put this into draft mode since some work is still needed. Thanks for review!
Enables the mempool_updatefromblock non-wallet functional test to be run even with the Bitcoin Core wallet disabled by using the new MiniWallet instead. - Refactoring and removal of unnecessary imports and arguments to transaction_graph_test() - Improve logging - Decrease test execution time by ~70% (39s => 12s)
|
@reemuru was there a reason this closed? Would you like to mark it up for grabs? |
|
I will start working on this as it is up for grabs. Please let me know if this is done elsewhere or no longer necessary? |
|
You can open the file on the |
|
Thanks @MarcoFalke. I see |
This is a PR proposed in #20078
This PR enables one more of the non-wallet functional tests (mempool_updatefromblock.py) to be run even with the Bitcoin Core wallet disabled by using the new MiniWallet instead.
Overview:
Before:
After: