diff options
author | glozow <gloriajzhao@gmail.com> | 2022-01-07 16:55:53 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2022-01-17 12:24:43 +0000 |
commit | de075a98eaf0b3f7676c5c78b50b66902202b34c (patch) | |
tree | 3ffd6f342ca2f68a27e29980ed9941da163881a5 /src/policy | |
parent | 9d88853e0c85f765f7d982b15e8122ede50110ed (diff) |
[validation] better handle errors in SubmitPackage
Behavior change: don't quit right after LimitMempoolSize() when a
package is partially submitted. We should still send
TransactionAddedToMempool notifications for
transactions that were submitted.
Not behavior change: add a new package validation result for mempool logic errors.
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/packages.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/policy/packages.h b/src/policy/packages.h index d2744f1265..9f274f6b7d 100644 --- a/src/policy/packages.h +++ b/src/policy/packages.h @@ -25,6 +25,7 @@ enum class PackageValidationResult { PCKG_RESULT_UNSET = 0, //!< Initial value. The package has not yet been rejected. PCKG_POLICY, //!< The package itself is invalid (e.g. too many transactions). PCKG_TX, //!< At least one tx is invalid. + PCKG_MEMPOOL_ERROR, //!< Mempool logic error. }; /** A package is an ordered list of transactions. The transactions cannot conflict with (spend the |