v29.4-roots.2 · Commit 3: [PATCH 03/21] policy: restore conservative relay and network controls
src/node/txdownloadman.h
Before: src/node/txdownloadman.h · After: src/node/txdownloadman.h
File metadata
index 1ae833a6be6c85c6a8eb4b863e4641ca796bceee..b352ae0dcdef3cb0b177b327622a9f8a500633ed 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/node/txdownloadman.h
CHANGED
|
@@ -42,7 +42,7 @@ struct TxDownloadOptions {
|
|
| 42 |
/** RNG provided by caller. */
|
| 43 |
FastRandomContext& m_rng;
|
| 44 |
/** Maximum number of transactions allowed in orphanage. */
|
| 45 |
-
const uint32_t m_max_orphan_txs;
|
| 46 |
/** Instantiate TxRequestTracker as deterministic (used for tests). */
|
| 47 |
bool m_deterministic_txrequest{false};
|
| 48 |
};
|
|
@@ -173,6 +173,8 @@ public:
|
|
| 173 |
|
| 174 |
/** Wrapper for TxOrphanage::GetOrphanTransactions */
|
| 175 |
std::vector<TxOrphanage::OrphanTxBase> GetOrphanTransactions() const;
|
|
|
|
|
|
|
| 176 |
};
|
| 177 |
} // namespace node
|
| 178 |
#endif // BITCOIN_NODE_TXDOWNLOADMAN_H
|
|
|
|
| 42 |
/** RNG provided by caller. */
|
| 43 |
FastRandomContext& m_rng;
|
| 44 |
/** Maximum number of transactions allowed in orphanage. */
|
| 45 |
+
uint32_t m_max_orphan_txs;
|
| 46 |
/** Instantiate TxRequestTracker as deterministic (used for tests). */
|
| 47 |
bool m_deterministic_txrequest{false};
|
| 48 |
};
|
|
|
|
| 173 |
|
| 174 |
/** Wrapper for TxOrphanage::GetOrphanTransactions */
|
| 175 |
std::vector<TxOrphanage::OrphanTxBase> GetOrphanTransactions() const;
|
| 176 |
+
|
| 177 |
+
void SetMaxOrphanTxs(uint32_t max_orphan_txs);
|
| 178 |
};
|
| 179 |
} // namespace node
|
| 180 |
#endif // BITCOIN_NODE_TXDOWNLOADMAN_H
|