misc package validation doc improvements

pull/826/head
glozow 3 years ago
parent 3308c61091
commit f95bbf58aa

@ -903,7 +903,7 @@ static RPCHelpMan testmempoolaccept()
RPCResult{ RPCResult{
RPCResult::Type::ARR, "", "The result of the mempool acceptance test for each raw transaction in the input array.\n" RPCResult::Type::ARR, "", "The result of the mempool acceptance test for each raw transaction in the input array.\n"
"Returns results for each transaction in the same order they were passed in.\n" "Returns results for each transaction in the same order they were passed in.\n"
"It is possible for transactions to not be fully validated ('allowed' unset) if another transaction failed.\n", "Transactions that cannot be fully validated due to failures in other transactions will not contain an 'allowed' result.\n",
{ {
{RPCResult::Type::OBJ, "", "", {RPCResult::Type::OBJ, "", "",
{ {

@ -199,7 +199,8 @@ struct PackageMempoolAcceptResult
/** /**
* Map from wtxid to finished MempoolAcceptResults. The client is responsible * Map from wtxid to finished MempoolAcceptResults. The client is responsible
* for keeping track of the transaction objects themselves. If a result is not * for keeping track of the transaction objects themselves. If a result is not
* present, it means validation was unfinished for that transaction. * present, it means validation was unfinished for that transaction. If there
* was a package-wide error (see result in m_state), m_tx_results will be empty.
*/ */
std::map<const uint256, const MempoolAcceptResult> m_tx_results; std::map<const uint256, const MempoolAcceptResult> m_tx_results;
@ -227,7 +228,8 @@ MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPoo
* @param[in] txns Group of transactions which may be independent or contain * @param[in] txns Group of transactions which may be independent or contain
* parent-child dependencies. The transactions must not conflict * parent-child dependencies. The transactions must not conflict
* with each other, i.e., must not spend the same inputs. If any * with each other, i.e., must not spend the same inputs. If any
* dependencies exist, parents must appear before children. * dependencies exist, parents must appear anywhere in the list
* before their children.
* @returns a PackageMempoolAcceptResult which includes a MempoolAcceptResult for each transaction. * @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.
*/ */

Loading…
Cancel
Save