HomePhabricator

[refactor] clarify abc* tests by referencing p2p objects directly

Description

[refactor] clarify abc* tests by referencing p2p objects directly

Summary:
Use object returned from add_p2p_connection to refer to p2ps, or use node.p2ps[0] when it needs to be used across many methods. Don't use the p2p property.

For these files, this is best done by removing some unnecessary (and often overcomplicated) helper functions that can be replaced with a single line of code at the callsite.

This is a backport of core#19804 [1b/4]

Test Plan: ninja check-functional-extended

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Oct 12 2021, 16:38
PiRKPushed on Oct 14 2021, 11:46
Reviewer
Restricted Project
Differential Revision
D10321: [refactor] clarify abc* tests by referencing p2p objects directly
Parents
rABC53018ea73eb3: [refactor] clarify tests by referencing p2p objects directly
Branches
Unknown
Tags
Unknown