-
Notifications
You must be signed in to change notification settings - Fork 38.8k
test: Remove or explain syncwithvalidationinterfacequeue #19893
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
promag
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.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. Coverage
Updated at: 2020-10-23T12:07:36.882496. |
0000857 to
faffc74
Compare
|
rebased |
|
Concept ACK |
| self.nodes[1].invalidateblock(block_reorg) | ||
| self.sync_blocks() | ||
| self.nodes[0].syncwithvalidationinterfacequeue() | ||
| assert_equal(self.nodes[0].getbalance(minconf=0), 0) # wallet txs not in the mempool are untrusted |
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.
note that wallet rpc will internally block if the chain tip changes. see BlockUntilSyncedToCurrentChain
|
Code review ACK fa6af31 |
…acequeue fa6af31 test: Document why syncwithvalidationinterfacequeue is needed in tests (MarcoFalke) fa135a1 Revert "test: Add missing sync_all to wallet_balance test" (MarcoFalke) Pull request description: syncwithvalidationinterfacequeue is a hidden test-only RPC, so it should not be used when it is not needed. Thus, either remove it or explain why it is needed. ACKs for top commit: fjahr: Code review ACK fa6af31 Tree-SHA512: de30db4ab521184091ee5beeab02989138cf7cf05088f766a2fb106151b239310b63d5380cb79e2a072f72c5ae9513aecae8eb9c1c7be713771585c3cb04d63a
Summary: `syncwithvalidationinterfacequeue` is a hidden test-only RPC, so it should not be used when it is not needed. Thus, either remove it or explain why it is needed. > Revert "test: Add missing sync_all to wallet_balance test" > > This reverts commit rABC7a820a75ecfb > > The underlying bug has been fixed in D7511. > test: Document why syncwithvalidationinterfacequeue is needed in tests This is a backport of [[bitcoin/bitcoin#19893 | core#19893]] Test Plan: `ninja check-functional` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D10895
syncwithvalidationinterfacequeue is a hidden test-only RPC, so it should not be used when it is not needed. Thus, either remove it or explain why it is needed.