Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented May 4, 2020

Fixes #18832

@maflcko maflcko force-pushed the 2005-qaVerackRace branch from fa4b47f to fae153b Compare May 4, 2020 12:56
@laanwj laanwj added P2P Tests and removed P2P labels May 4, 2020
# * Must have a version message before anything else
# * Must have a verack message before anything else
wait_until(lambda: all(peer['version'] != 0 for peer in from_connection.getpeerinfo()))
wait_until(lambda: all(peer['bytesrecv_per_msg'].pop('verack', 0) == 24 for peer in from_connection.getpeerinfo()))
Copy link
Member

Choose a reason for hiding this comment

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

It's slightly hacky to use the receive statistics here to see if the local peer has received the verack message and completed the handshake. But the only way to do it without RPC changes, I suppose.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is fSuccessfullyConnected or so, which should do the same thing, but yeah it is not exposed on RPC

@laanwj
Copy link
Member

laanwj commented May 6, 2020

ACK fae153b

@maflcko maflcko merged commit 376294c into bitcoin:master May 8, 2020
@maflcko maflcko deleted the 2005-qaVerackRace branch May 8, 2020 23:33
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 12, 2020
… failures

fae153b test: Fix verack race to avoid intermittent test failures (MarcoFalke)

Pull request description:

  Fixes bitcoin#18832

ACKs for top commit:
  laanwj:
    ACK fae153b

Tree-SHA512: 071de8c8e2b2787c9433c7460e18b9a54beaf471a52ce848c5ac7263fc2a40f5b976d4f558ecc494fd0fa07284b7c98d29267cade58f80ab74fe9a7d18d94298
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 12, 2020
Summary:
fae153b40968bfd974a4709bcd841a59447abf18 test: Fix verack race to avoid intermittent test failures (MarcoFalke)

Pull request description:

  Fixes #18832

ACKs for top commit:
  laanwj:
    ACK fae153b40968bfd974a4709bcd841a59447abf18

Tree-SHA512: 071de8c8e2b2787c9433c7460e18b9a54beaf471a52ce848c5ac7263fc2a40f5b976d4f558ecc494fd0fa07284b7c98d29267cade58f80ab74fe9a7d18d94298

Backport of Core [[bitcoin/bitcoin#18866 | PR18866]]

Test Plan: `ninja check-functional`

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7434
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
… failures

fae153b test: Fix verack race to avoid intermittent test failures (MarcoFalke)

Pull request description:

  Fixes bitcoin#18832

ACKs for top commit:
  laanwj:
    ACK fae153b

Tree-SHA512: 071de8c8e2b2787c9433c7460e18b9a54beaf471a52ce848c5ac7263fc2a40f5b976d4f558ecc494fd0fa07284b7c98d29267cade58f80ab74fe9a7d18d94298
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 15, 2021
… failures

fae153b test: Fix verack race to avoid intermittent test failures (MarcoFalke)

Pull request description:

  Fixes bitcoin#18832

ACKs for top commit:
  laanwj:
    ACK fae153b

Tree-SHA512: 071de8c8e2b2787c9433c7460e18b9a54beaf471a52ce848c5ac7263fc2a40f5b976d4f558ecc494fd0fa07284b7c98d29267cade58f80ab74fe9a7d18d94298
@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.

intermittent failure in mempool_unbroadcast "Mempool sync timed out after 30s"

2 participants