Page MenuHomePhabricator

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

Authored by PiRK on Jan 20 2021, 08:53.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.