Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Sep 6, 2020

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.

@fanquake fanquake added the Tests label Sep 6, 2020
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 19, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

Coverage

Coverage Change (pull 19893, 41d7c7c23ed4a7a5c57e9ea156d98978f8814fdd) Reference (master, 49984b4)
Lines -0.0182 % 90.7690 %
Functions -0.0119 % 86.0909 %
Branches -0.0010 % 52.0769 %

Updated at: 2020-10-23T12:07:36.882496.

@maflcko
Copy link
Member Author

maflcko commented Sep 26, 2020

rebased

@practicalswift
Copy link
Contributor

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
Copy link
Member Author

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

@fjahr
Copy link
Contributor

fjahr commented Dec 6, 2020

Code review ACK fa6af31

@maflcko maflcko merged commit 64156ad into bitcoin:master Dec 6, 2020
@maflcko maflcko deleted the 2009-testSync branch December 6, 2020 18:35
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 6, 2020
…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
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 26, 2022
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants