From c3cd7fcb2cd9f9911f8251a6f29120f65c63ea37 Mon Sep 17 00:00:00 2001 From: glozow Date: Mon, 14 Jul 2025 14:22:17 -0400 Subject: [PATCH] [doc] remove references to now-nonexistent Finalize() function --- src/validation.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 0ac04cfa5ff..f2f6098e214 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -469,10 +469,8 @@ public: const bool m_allow_replacement; /** When true, allow sibling eviction. This only occurs in single transaction package settings. */ const bool m_allow_sibling_eviction; - /** When true, the mempool will not be trimmed when any transactions are submitted in - * Finalize(). Instead, limits should be enforced at the end to ensure the package is not - * partially submitted. - */ + /** Used to skip the LimitMempoolSize() call within AcceptSingleTransaction(). This should be used when multiple + * AcceptSubPackage calls are expected and the mempool will be trimmed at the end of AcceptPackage(). */ const bool m_package_submission; /** When true, use package feerates instead of individual transaction feerates for fee-based * policies such as mempool min fee and min relay fee. @@ -548,7 +546,7 @@ public: /* m_test_accept */ package_args.m_test_accept, /* m_allow_replacement */ true, /* m_allow_sibling_eviction */ true, - /* m_package_submission */ true, // do not LimitMempoolSize in Finalize() + /* m_package_submission */ true, // trim at the end of AcceptPackage() /* m_package_feerates */ false, // only 1 transaction /* m_client_maxfeerate */ package_args.m_client_maxfeerate, /* m_allow_carveouts */ false,