v29.4-roots.2 · Commit 3: [PATCH 03/21] 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. The two line-number columns refer to before and after.
src/node/txdownloadman_impl.cpp
CHANGED
|
@@ -87,6 +87,11 @@ std::vector<TxOrphanage::OrphanTxBase> TxDownloadManager::GetOrphanTransactions(
|
|
|
87
87
|
{
|
|
88
88
|
return m_impl->GetOrphanTransactions();
|
|
89
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
|
+
}
|
|
90
95
|
|
|
91
96
|
// TxDownloadManagerImpl
|
|
92
97
|
void TxDownloadManagerImpl::ActiveTipChange()
|