Page MenuHomePhabricator

test: use a dataclass in p2p_inv_download
ClosedPublic

Authored by PiRK on Sep 19 2025, 14:57.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCb7cb27794bce: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable