diff options
author | glozow <gloriajzhao@gmail.com> | 2021-10-20 12:02:18 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-11-29 15:33:07 +0000 |
commit | d59ddc5c3d1c035474d7bc9fa9f8a0eeb1c8498c (patch) | |
tree | 9be6b98492de028b2ab1176bc64738e6ff68f12d /src/validation.h | |
parent | ba26169f6035c238378a3c9647213328a006fa23 (diff) |
[packages/doc] define and document package rules
Central place for putting package-related info. This document or parts
of it can also be easily ported to other places if deemed appropriate.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/validation.h b/src/validation.h index 256981224a..2621d3e7f1 100644 --- a/src/validation.h +++ b/src/validation.h @@ -216,14 +216,8 @@ MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPoo bool bypass_limits, bool test_accept=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** -* 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. +* Validate (and maybe submit) a package to the mempool. See doc/policy/packages.md for full details +* on package validation rules. * @returns a PackageMempoolAcceptResult which includes a MempoolAcceptResult for each transaction. * If a transaction fails, validation will exit early and some results may be missing. */ |