Skip to content

Commit 322b12a

Browse files
committed
Remove deprecated TransactionWithinChainLimit
1 parent 4784751 commit 322b12a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/txmempool.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,11 +1076,4 @@ void CTxMemPool::GetTransactionAncestry(const uint256& txid, size_t& ancestors,
10761076
}
10771077
}
10781078

1079-
bool CTxMemPool::TransactionWithinChainLimit(const uint256& txid, size_t ancestor_limit, size_t descendant_limit) const {
1080-
LOCK(cs);
1081-
auto it = mapTx.find(txid);
1082-
return it == mapTx.end() || (it->GetCountWithAncestors() < ancestor_limit &&
1083-
CalculateDescendantMaximum(it) < descendant_limit);
1084-
}
1085-
10861079
SaltedTxidHasher::SaltedTxidHasher() : k0(GetRand(std::numeric_limits<uint64_t>::max())), k1(GetRand(std::numeric_limits<uint64_t>::max())) {}

src/txmempool.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,6 @@ class CTxMemPool
626626
*/
627627
void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) const;
628628

629-
/** Returns false if the transaction is in the mempool and not within the chain limit specified. */
630-
bool TransactionWithinChainLimit(const uint256& txid, size_t ancestor_limit, size_t descendant_limit) const;
631-
632629
unsigned long size()
633630
{
634631
LOCK(cs);

0 commit comments

Comments
 (0)