[#AcceptToMemoryPool] = AcceptToMemoryPool :mrdocs: Try to add a transaction to the mempool. This is an internal function and is exposed only for testing. Client code should use ChainstateManager::ProcessTransaction() == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1b929958), requires_capability(0x7f2e275a2b38), requires_capability(0x7f2e36963f38), requires_capability(0x7f2e35450188)]] xref:MempoolAcceptResult.adoc[MempoolAcceptResult] AcceptToMemoryPool( xref:Chainstate.adoc[Chainstate]& active_chainstate, xref:CTransactionRef.adoc[CTransactionRef] const& tx, int64_t accept_time, bool bypass_limits, bool test_accept); ---- == Return Value a MempoolAcceptResult indicating whether the transaction was accepted/rejected with reason. == Parameters [cols="1,4"] |=== | Name| Description | *active_chainstate* [in] | Reference to the active chainstate. | *tx* [in] | The transaction to submit for mempool acceptance. | *accept_time* [in] | The timestamp for adding the transaction to the mempool. It is also used to determine when the entry expires. | *bypass_limits* [in] | When true, don't enforce mempool fee and capacity limits, and set entry_sequence to zero. | *test_accept* [in] | When true, run validation checks but don't submit to mempool. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#