diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-01-31 21:24:08 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2021-02-26 23:55:10 +1000 |
commit | 83679ffc600305ec0926fd195ee31c11de2ed613 (patch) | |
tree | 174fe9757d0aaf5354acf0d6eba68cbe3b9e79dd /src/txorphanage.h | |
parent | ee135c8d5b39b0cb8b301a83e286285ab926dca7 (diff) | |
download | bitcoin-83679ffc600305ec0926fd195ee31c11de2ed613.tar.xz |
txorphanage: Extract HaveOrphanTx
Extract some common code into HaveOrphanTx 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 c57249265e..ab4960be69 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -27,6 +27,7 @@ int EraseOrphanTx(const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); 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); /** Map from txid to orphan transaction record. Limited by * -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS */ |