mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
Eliminate CheckPackageLimits, which no longer does anything
This commit is contained in:
@@ -1054,17 +1054,11 @@ bool MemPoolAccept::PackageMempoolChecks(const std::vector<CTransactionRef>& txn
|
||||
AssertLockHeld(cs_main);
|
||||
AssertLockHeld(m_pool.cs);
|
||||
|
||||
// CheckPackageLimits expects the package transactions to not already be in the mempool.
|
||||
assert(std::all_of(txns.cbegin(), txns.cend(), [this](const auto& tx) { return !m_pool.exists(tx->GetHash()); }));
|
||||
assert(std::all_of(txns.cbegin(), txns.cend(), [this](const auto& tx)
|
||||
{ return !m_pool.exists(tx->GetHash());}));
|
||||
|
||||
assert(txns.size() == workspaces.size());
|
||||
|
||||
auto result = m_pool.CheckPackageLimits(txns, total_vsize);
|
||||
if (!result) {
|
||||
// This is a package-wide error, separate from an individual transaction error.
|
||||
return package_state.Invalid(PackageValidationResult::PCKG_POLICY, "package-mempool-limits", util::ErrorString(result).original);
|
||||
}
|
||||
|
||||
// No conflicts means we're finished. Further checks are all RBF-only.
|
||||
if (!m_subpackage.m_rbf) return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user