HomePhabricator

test: use a dataclass in p2p_inv_download

Description

test: use a dataclass in p2p_inv_download

Summary:
This removes some boilerplate code, and we can emulate immutability with frozen=True.

Also, define the default values in the class body for the constants that are identical for all 3 contexts. And use the cosntants defined in p2p.py when available for these defaut values.

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Sep 19 2025, 13:56
PiRKPushed on Sep 22 2025, 11:05
Reviewer
Restricted Project
Differential Revision
D18652: test: use a dataclass in p2p_inv_download
Parents
rABC01f8212cc08f: [electrum] bump RPC timeout
Branches
Unknown
Tags
Unknown