MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CheckPolicyLimits

Method CheckPolicyLimits

src/txmempool.cpp:800–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798}
799
800bool CTxMemPool::CheckPolicyLimits(const CTransactionRef& tx)
801{
802 LOCK(cs);
803 // Use ChangeSet interface to check whether the cluster count
804 // limits would be violated. Note that the changeset will be destroyed
805 // when it goes out of scope.
806 auto changeset = GetChangeSet();
807 (void) changeset->StageAddition(tx, /*fee=*/0, /*time=*/0, /*entry_height=*/0, /*entry_sequence=*/0, /*spends_coinbase=*/false, /*sigops_cost=*/0, LockPoints{});
808 return changeset->CheckMemPoolPolicyLimits();
809}
810
811int CTxMemPool::Expire(std::chrono::seconds time)
812{

Callers 1

checkChainLimitsMethod · 0.80

Calls 2

StageAdditionMethod · 0.80

Tested by

no test coverage detected