aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-03-07 10:45:24 -0500
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-06-11 19:04:56 +0900
commit322b12ac4e0a8c892e81a760ff7225619248b74f (patch)
tree01ed3d8ae153a7c010e868fb8c522de2ba406d4f
parent47847515473b054929af0c8de3d54b6672500cab (diff)
Remove deprecated TransactionWithinChainLimit
-rw-r--r--src/txmempool.cpp7
-rw-r--r--src/txmempool.h3
2 files changed, 0 insertions, 10 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())) {}
diff --git a/src/txmempool.h b/src/txmempool.h
index d32c29a18f..bda812b42f 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);