diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-01-31 21:59:57 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2021-02-26 23:55:10 +1000 |
commit | f294da727413210fda279afdc206a4dd12046d56 (patch) | |
tree | 2fa630f333aae50b5122e8796151300df0cd03c2 /src/txorphanage.h | |
parent | 83679ffc600305ec0926fd195ee31c11de2ed613 (diff) |
txorphanage: Extract GetOrphanTx
Extract orphan lookup code into GetOrphanTx function.
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r-- | src/txorphanage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h index ab4960be69..1adc6f1d6c 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -28,6 +28,7 @@ void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); void AddChildrenToWorkSet(const CTransaction& tx, std::set<uint256>& orphan_work_set) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); bool HaveOrphanTx(const GenTxid& gtxid) EXCLUSIVE_LOCKS_REQUIRED(!g_cs_orphans); +std::pair<CTransactionRef, NodeId> GetOrphanTx(const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); /** Map from txid to orphan transaction record. Limited by * -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS */ |