@@ -187,7 +187,7 @@ bool TxDownloadManagerImpl::AddTxAnnouncement(NodeId peer, const GenTxid& gtxid,
187
187
188
188
if (unique_parents.empty ()) return true ;
189
189
190
- if (OrphanResolutionCandidate (unique_parents, orphan_tx->GetWitnessHash (), peer, now)) {
190
+ if (MaybeAddOrphanResolutionCandidate (unique_parents, orphan_tx->GetWitnessHash (), peer, now)) {
191
191
m_orphanage.AddAnnouncer (orphan_tx->GetWitnessHash (), peer);
192
192
}
193
193
@@ -224,7 +224,7 @@ bool TxDownloadManagerImpl::AddTxAnnouncement(NodeId peer, const GenTxid& gtxid,
224
224
return false ;
225
225
}
226
226
227
- bool TxDownloadManagerImpl::OrphanResolutionCandidate (const std::vector<Txid>& unique_parents, const Wtxid& wtxid, NodeId nodeid, std::chrono::microseconds now)
227
+ bool TxDownloadManagerImpl::MaybeAddOrphanResolutionCandidate (const std::vector<Txid>& unique_parents, const Wtxid& wtxid, NodeId nodeid, std::chrono::microseconds now)
228
228
{
229
229
auto it_peer = m_peer_info.find (nodeid);
230
230
if (it_peer == m_peer_info.end ()) return false ;
@@ -402,7 +402,7 @@ node::RejectedTxTodo TxDownloadManagerImpl::MempoolRejectedTx(const CTransaction
402
402
add_extra_compact_tx &= !m_orphanage.HaveTx (wtxid);
403
403
404
404
auto add_orphan_reso_candidate = [&](const CTransactionRef& orphan_tx, const std::vector<Txid>& unique_parents, NodeId nodeid, std::chrono::microseconds now) {
405
- if (OrphanResolutionCandidate (unique_parents, orphan_tx->GetWitnessHash (), nodeid, now)) {
405
+ if (MaybeAddOrphanResolutionCandidate (unique_parents, orphan_tx->GetWitnessHash (), nodeid, now)) {
406
406
m_orphanage.AddTx (orphan_tx, nodeid);
407
407
}
408
408
};
0 commit comments