| 213 | } |
| 214 | |
| 215 | void TryAddToMempool(CTxMemPool& tx_pool, const CTxMemPoolEntry& entry) |
| 216 | { |
| 217 | LOCK2(cs_main, tx_pool.cs); |
| 218 | auto changeset = tx_pool.GetChangeSet(); |
| 219 | changeset->StageAddition(entry.GetSharedTx(), entry.GetFee(), |
| 220 | entry.GetTime().count(), entry.GetHeight(), entry.GetSequence(), |
| 221 | entry.GetSpendsCoinbase(), entry.GetSigOpCost(), entry.GetLockPoints()); |
| 222 | if (changeset->CheckMemPoolPolicyLimits()) changeset->Apply(); |
| 223 | } |
| 224 | |
| 225 | void MockMempoolMinFee(const CFeeRate& target_feerate, CTxMemPool& mempool) |
| 226 | { |
no test coverage detected