| 798 | } |
| 799 | |
| 800 | bool 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 | |
| 811 | int CTxMemPool::Expire(std::chrono::seconds time) |
| 812 | { |
no test coverage detected