Try to add a transaction to the memory pool.
Declared in <validation.h>
[[nodiscard, requires_capability(0x7fd753e2f148), requires_capability(0x7fd74dcf07f8), requires_capability(0x7fd74a14e3f8), requires_capability(0x7fd75e70f688)]]
MempoolAcceptResult
ProcessTransaction(
CTransactionRef const& tx,
bool test_accept = false);
a MempoolAcceptResult indicating whether the transaction was accepted or rejected.
The return value should not be discarded.
| Name | Description |
|---|---|
| tx [in] | The transaction to submit for mempool acceptance. |
| test_accept [in] | When true, run validation checks but don't submit to mempool. |