aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 4f740b7c0a..9df9b0e45a 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<uint64_t>::max())), k1(GetRand(std::numeric_limits<uint64_t>::max())) {}