HomePhabricator

[policy] Define packages

Description

[policy] Define packages

Summary:
Define the Package type as an alias for a vector of transactions for now.
Add PackageValidationResult, similar to TxValidationResult and
BlockValidationResult for package-wide errors that cannot be reported
within a single transaction result, such as having too many
transactions in the package. We can update the concept of
what a package is and have different logic for packages vs lists of
transactions in the future, e.g. for package relay.

This is a backport of core#20833 [4/13]
https://github.com/bitcoin/bitcoin/pull/20833/commits/b88d77aec5e7bef5305a668d15031351c0548b4d

Test Plan: ninja

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
glozow <gzhao408@berkeley.edu>Authored on Feb 11 2021, 17:50
PiRKCommitted on Oct 5 2022, 06:15
PiRKPushed on Oct 5 2022, 06:15
Reviewer
Restricted Project
Differential Revision
D12122: [policy] Define packages
Parents
rABC93df28c6574f: Refactor & improve makeseeds
Branches
Unknown
Tags
Unknown

Event Timeline