Crate bitcoin_packages
source ·Structs
Enums
- | A “reason” why a package was invalid. | It may be that one or more of the included | transactions is invalid or the package | itself violates our rules. | | We don’t distinguish between consensus | and policy violations right now. |
Constants
- | Default maximum number of transactions | in a package. |
- | Default maximum total virtual size | of transactions in a package in KvB. |
Functions
- | Context-free package policy checks: | | 1. The number of transactions cannot | exceed MAX_PACKAGE_COUNT. | | 2. The total virtual size cannot exceed | MAX_PACKAGE_SIZE. | | 3. If any dependencies exist between | transactions, parents must appear | before children. | | 4. Transactions cannot conflict, | i.e., spend the same inputs. |
Type Definitions
- | A package is an ordered list of transactions. | The transactions cannot conflict with | (spend the same inputs as) one another. |