[txorphanage] add GetTx so that orphan vin can be read

This commit is contained in:
glozow
2025-01-03 09:04:10 -05:00
parent e810842acd
commit 04448ce32a
4 changed files with 13 additions and 0 deletions

View File

@@ -179,6 +179,12 @@ bool TxOrphanage::HaveTx(const Wtxid& wtxid) const
return m_orphans.count(wtxid);
}
CTransactionRef TxOrphanage::GetTx(const Wtxid& wtxid) const
{
auto it = m_orphans.find(wtxid);
return it != m_orphans.end() ? it->second.tx : nullptr;
}
bool TxOrphanage::HaveTxFromPeer(const Wtxid& wtxid, NodeId peer) const
{
auto it = m_orphans.find(wtxid);