HomePhabricator

test: Fix intermittent p2p_fingerprint issue

Description

test: Fix intermittent p2p_fingerprint issue

Summary:

A single sync_with_ping can't be used to drop a block announcement, as the block might be sent after the ping has been responded to.

Fix that by waiting for the block.

Note: The useless [0] after generatetoaddress was a leftover that should have been removed in D10804.

This is a backport of core#20466

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10893

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Nov 23 2020, 20:09
PiRKCommitted on Jan 26 2022, 07:24
PiRKPushed on Jan 26 2022, 07:24
Reviewer
Restricted Project
Differential Revision
D10893: test: Fix intermittent p2p_fingerprint issue
Parents
rABC128c55c78820: [Cashtab] Standardize testing regime
Branches
Unknown
Tags
Unknown