v29.4-roots.4 · Commit 3: [PATCH 03/37] policy: restore conservative relay and network controls
src/node/txdownloadman_impl.cpp
Before: src/node/txdownloadman_impl.cpp · After: src/node/txdownloadman_impl.cpp
File metadata
index 452c75da05df33b2bfa741f65ae7a8362cc9d910..1ca8f8dd1a1b4f391a300e2bd92892a3746e0c75 100644
Download original patch · Release notes
Diff rows 1–11 of 11. 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_impl.cpp
CHANGED
|
@@ -87,6 +87,11 @@ std::vector<TxOrphanage::OrphanTxBase> TxDownloadManager::GetOrphanTransactions(
|
|
| 87 |
{
|
| 88 |
return m_impl->GetOrphanTransactions();
|
| 89 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
// TxDownloadManagerImpl
|
| 92 |
void TxDownloadManagerImpl::ActiveTipChange()
|
|
|
|
| 87 |
{
|
| 88 |
return m_impl->GetOrphanTransactions();
|
| 89 |
}
|
| 90 |
+
void TxDownloadManager::SetMaxOrphanTxs(uint32_t max_orphan_txs)
|
| 91 |
+
{
|
| 92 |
+
m_impl->m_opts.m_max_orphan_txs = max_orphan_txs;
|
| 93 |
+
m_impl->m_orphanage.LimitOrphans(max_orphan_txs, m_impl->m_opts.m_rng);
|
| 94 |
+
}
|
| 95 |
|
| 96 |
// TxDownloadManagerImpl
|
| 97 |
void TxDownloadManagerImpl::ActiveTipChange()
|