aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-07-20 11:07:25 +0100
committerglozow <gloriajzhao@gmail.com>2021-11-29 15:42:46 +0000
commitbe3ff151a1f9665720cdf70d072b098a2f9726a9 (patch)
treeca3c98168e9357de0dec83aceb7529e952e564de /src/validation.h
parent144a29099a865ac1dc3e5291d9529fbcca9c83a4 (diff)
downloadbitcoin-be3ff151a1f9665720cdf70d072b098a2f9726a9.tar.xz
[validation] full package accept + mempool submission
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index 2621d3e7f1..4578a5e02e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -218,8 +218,10 @@ MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPoo
/**
* Validate (and maybe submit) a package to the mempool. See doc/policy/packages.md for full details
* on package validation rules.
+* @param[in] test_accept When true, run validation checks but don't submit to mempool.
* @returns a PackageMempoolAcceptResult which includes a MempoolAcceptResult for each transaction.
-* If a transaction fails, validation will exit early and some results may be missing.
+* If a transaction fails, validation will exit early and some results may be missing. It is also
+* possible for the package to be partially submitted.
*/
PackageMempoolAcceptResult ProcessNewPackage(CChainState& active_chainstate, CTxMemPool& pool,
const Package& txns, bool test_accept)