pub fn process_new_package(
    active_chainstate: &mut ChainState,
    pool: &mut TxMemPool,
    package: &Package,
    test_accept: bool
) -> PackageMempoolAcceptResult
Expand description

| Atomically test acceptance of a package. | If the package only contains one tx, | package rules still apply. Package | validation does not allow BIP125 replacements, | so the transaction(s) cannot spend | the same inputs as any transaction in | the mempool. | | ———– | @param[in] txns | | Group of transactions which may be independent | or contain parent-child dependencies. | The transactions must not conflict | with each other, i.e., must not spend | the same inputs. If any dependencies | exist, parents must appear anywhere | in the list before their children. | | ———– | @return | | a PackageMempoolAcceptResult which | includes a MempoolAcceptResult for | each transaction. | | If a transaction fails, validation | will exit early and some results may | be missing. |