@@ -229,7 +229,7 @@ class TxOrphanageImpl final : public TxOrphanage {
229229 std::vector<std::pair<Wtxid, NodeId>> AddChildrenToWorkSet (const CTransaction& tx, FastRandomContext& rng) override ;
230230 bool HaveTxToReconsider (NodeId peer) override ;
231231 std::vector<CTransactionRef> GetChildrenFromSamePeer (const CTransactionRef& parent, NodeId nodeid) const override ;
232- std::vector<OrphanTxBase > GetOrphanTransactions () const override ;
232+ std::vector<OrphanInfo > GetOrphanTransactions () const override ;
233233 TxOrphanage::Usage TotalOrphanUsage () const override ;
234234 void SanityCheck () const override ;
235235};
@@ -665,17 +665,17 @@ std::vector<CTransactionRef> TxOrphanageImpl::GetChildrenFromSamePeer(const CTra
665665 return children_found;
666666}
667667
668- std::vector<TxOrphanage::OrphanTxBase > TxOrphanageImpl::GetOrphanTransactions () const
668+ std::vector<TxOrphanage::OrphanInfo > TxOrphanageImpl::GetOrphanTransactions () const
669669{
670- std::vector<TxOrphanage::OrphanTxBase > result;
670+ std::vector<TxOrphanage::OrphanInfo > result;
671671 result.reserve (m_unique_orphans);
672672
673673 auto & index_by_wtxid = m_orphans.get <ByWtxid>();
674674 auto it = index_by_wtxid.begin ();
675675 std::set<NodeId> this_orphan_announcers;
676676 while (it != index_by_wtxid.end ()) {
677677 this_orphan_announcers.insert (it->m_announcer );
678- // If this is the last entry, or the next entry has a different wtxid, build a OrphanTxBase .
678+ // If this is the last entry, or the next entry has a different wtxid, build a OrphanInfo .
679679 if (std::next (it) == index_by_wtxid.end () || std::next (it)->m_tx ->GetWitnessHash () != it->m_tx ->GetWitnessHash ()) {
680680 result.emplace_back (it->m_tx , std::move (this_orphan_announcers));
681681 this_orphan_announcers.clear ();
0 commit comments