diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 4f740b7c0a4..9df9b0e45ac 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -1076,11 +1076,4 @@ void CTxMemPool::GetTransactionAncestry(const uint256& txid, size_t& ancestors, } } -bool CTxMemPool::TransactionWithinChainLimit(const uint256& txid, size_t ancestor_limit, size_t descendant_limit) const { - LOCK(cs); - auto it = mapTx.find(txid); - return it == mapTx.end() || (it->GetCountWithAncestors() < ancestor_limit && - CalculateDescendantMaximum(it) < descendant_limit); -} - SaltedTxidHasher::SaltedTxidHasher() : k0(GetRand(std::numeric_limits::max())), k1(GetRand(std::numeric_limits::max())) {} diff --git a/src/txmempool.h b/src/txmempool.h index d32c29a18f3..bda812b42fb 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -626,9 +626,6 @@ public: */ void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) const; - /** Returns false if the transaction is in the mempool and not within the chain limit specified. */ - bool TransactionWithinChainLimit(const uint256& txid, size_t ancestor_limit, size_t descendant_limit) const; - unsigned long size() { LOCK(cs);