v30.3-roots.1 · Commit 51: [PATCH 51/68] mempool: synchronize dynamic dust fee publication
src/test/fuzz/package_eval.cpp
Before: src/test/fuzz/package_eval.cpp · After: src/test/fuzz/package_eval.cpp
File metadata
index 50f4c416d797228b39cf54ae74d7cc7a5284d1b3..aacbdbb94d5f498f986f538ebe22873a35424766 100644
Download original patch · Release notes
Diff rows 1–16 of 16. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/fuzz/package_eval.cpp
CHANGED
|
@@ -172,7 +172,7 @@ std::optional<COutPoint> GetChildEvictingPrevout(const CTxMemPool& tx_pool)
|
|
| 172 |
LOCK(tx_pool.cs);
|
| 173 |
for (const auto& tx_info : tx_pool.infoAll()) {
|
| 174 |
const auto& entry = *Assert(tx_pool.GetEntry(tx_info.tx->GetHash()));
|
| 175 |
-
std::vector<uint32_t> dust_indexes{GetDust(*tx_info.tx, tx_pool.m_opts.dust_relay_feerate)};
|
| 176 |
if (!dust_indexes.empty()) {
|
| 177 |
const auto& children = entry.GetMemPoolChildrenConst();
|
| 178 |
if (!children.empty()) {
|
|
@@ -313,7 +313,7 @@ FUZZ_TARGET(ephemeral_package_eval, .init = initialize_tx_pool)
|
|
| 313 |
// filter for ephemeral dust
|
| 314 |
if (tx_pool.exists(txid)) {
|
| 315 |
const auto tx_info{tx_pool.info(txid)};
|
| 316 |
-
if (GetDust(*tx_info.tx, tx_pool.m_opts.dust_relay_feerate).empty()) {
|
| 317 |
tx_pool.PrioritiseTransaction(txid, delta);
|
| 318 |
}
|
| 319 |
}
|
|
|
|
| 172 |
LOCK(tx_pool.cs);
|
| 173 |
for (const auto& tx_info : tx_pool.infoAll()) {
|
| 174 |
const auto& entry = *Assert(tx_pool.GetEntry(tx_info.tx->GetHash()));
|
| 175 |
+
std::vector<uint32_t> dust_indexes{GetDust(*tx_info.tx, tx_pool.GetDustRelayFee())};
|
| 176 |
if (!dust_indexes.empty()) {
|
| 177 |
const auto& children = entry.GetMemPoolChildrenConst();
|
| 178 |
if (!children.empty()) {
|
|
|
|
| 313 |
// filter for ephemeral dust
|
| 314 |
if (tx_pool.exists(txid)) {
|
| 315 |
const auto tx_info{tx_pool.info(txid)};
|
| 316 |
+
if (GetDust(*tx_info.tx, tx_pool.GetDustRelayFee()).empty()) {
|
| 317 |
tx_pool.PrioritiseTransaction(txid, delta);
|
| 318 |
}
|
| 319 |
}
|