HomePhabricator

refactor: test: use wait_for_getdata() in p2p_compactblocks.py

Description

refactor: test: use wait_for_getdata() in p2p_compactblocks.py

Summary:

The method wait_for_getdata() was recently changed to be more precise by waiting for a specified list of hashes, instead of only matching any getdata message (see PR18690). This PR replaces the remaining occurences of manual inspection of last_messages with this call.

This is a backport of Core PR18756

Test Plan: test/functional/test_runner.py p2p_compactblocks

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Jan 20 2021, 11:07
PiRKCommitted on Jan 20 2021, 11:13
abc-botPushed on Jan 20 2021, 11:13
Reviewer
Restricted Project
Differential Revision
D8974: refactor: test: use wait_for_getdata() in p2p_compactblocks.py
Parents
rABC05eb8acb903e: test: display command line options passed to send_cli() in debug log
Branches
Unknown
Tags
Unknown