Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented May 22, 2018

Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the txid is dropped by node 1 and the call to sync_all fails.

Solve it by a call to sync_blocks after generate.

@maflcko maflcko added the Tests label May 22, 2018
@maflcko
Copy link
Member Author

maflcko commented May 22, 2018

One of the travis failures for reference: https://travis-ci.org/bitcoin/bitcoin/jobs/377321319

@maflcko maflcko force-pushed the Mf1805-qaWalletRace branch from fa19528 to faf20a7 Compare May 22, 2018 22:06
@Empact
Copy link
Contributor

Empact commented May 22, 2018

utACK faf20a7

Copy link
Contributor

@jnewbery jnewbery 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

Copy link
Contributor

Choose a reason for hiding this comment

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

You can use self.sync_all() here to avoid the additional import.

Copy link
Contributor

Choose a reason for hiding this comment

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

No need to remove this. It looks like this log indicates that this part of the test is for listreceivedbyaddress compared with the next parts of the test for getreceivedbyaddress and listreceivedbylabel/getreceivedbylabel.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Removing the log statement was incorrect. Fixed up...

@maflcko maflcko force-pushed the Mf1805-qaWalletRace branch from faf20a7 to fa865ef Compare May 23, 2018 13:52
@jnewbery
Copy link
Contributor

Tested ACK fa865ef

@maflcko maflcko merged commit fa865ef into bitcoin:master May 24, 2018
maflcko pushed a commit that referenced this pull request May 24, 2018
fa865ef qa: Fix wallet_listreceivedby race (MarcoFalke)

Pull request description:

  Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the `txid` is dropped by node 1 and the call to `sync_all` fails.

  Solve it by a call to `sync_blocks` after `generate`.

Tree-SHA512: e21b01a9e8c90bd6a3aad290c97cc4866ab384e22797b318eed55ae2767512203597d3a184b23ad5a3fe76bdbb8a3d5c51e097d56b160232851164434059ff23
@maflcko maflcko deleted the Mf1805-qaWalletRace branch May 24, 2018 14:14
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request May 29, 2018
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jul 12, 2018
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 11, 2019
Summary:
fa865ef qa: Fix wallet_listreceivedby race (MarcoFalke)

Pull request description:

  Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the `txid` is dropped by node 1 and the call to `sync_all` fails.

  Solve it by a call to `sync_blocks` after `generate`.

Tree-SHA512: e21b01a9e8c90bd6a3aad290c97cc4866ab384e22797b318eed55ae2767512203597d3a184b23ad5a3fe76bdbb8a3d5c51e097d56b160232851164434059ff23

Backport of Core PR13304
bitcoin/bitcoin#13304

Test Plan:
  test_runner.py wallet_listreceivedby

Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D4164
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Apr 16, 2020
fa865ef qa: Fix wallet_listreceivedby race (MarcoFalke)

Pull request description:

  Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the `txid` is dropped by node 1 and the call to `sync_all` fails.

  Solve it by a call to `sync_blocks` after `generate`.

Tree-SHA512: e21b01a9e8c90bd6a3aad290c97cc4866ab384e22797b318eed55ae2767512203597d3a184b23ad5a3fe76bdbb8a3d5c51e097d56b160232851164434059ff23
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

3 participants