Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 3: [PATCH 03/37] 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. The two line-number columns refer to before and after.

src/node/txdownloadman.h CHANGED
@@ -42,7 +42,7 @@ struct TxDownloadOptions {
42
42
  /** RNG provided by caller. */
43
43
  FastRandomContext& m_rng;
44
44
  /** Maximum number of transactions allowed in orphanage. */
45
- const uint32_t m_max_orphan_txs;
45
+ uint32_t m_max_orphan_txs;
46
46
  /** Instantiate TxRequestTracker as deterministic (used for tests). */
47
47
  bool m_deterministic_txrequest{false};
48
48
  };
@@ -173,6 +173,8 @@ public:
173
173
 
174
174
  /** Wrapper for TxOrphanage::GetOrphanTransactions */
175
175
  std::vector<TxOrphanage::OrphanTxBase> GetOrphanTransactions() const;
176
+
177
+ void SetMaxOrphanTxs(uint32_t max_orphan_txs);
176
178
  };
177
179
  } // namespace node
178
180
  #endif // BITCOIN_NODE_TXDOWNLOADMAN_H