aboutsummaryrefslogtreecommitdiff
path: root/src/txorphanage.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-01-31 20:36:24 +1000
committerAnthony Towns <aj@erisian.com.au>2021-02-26 23:55:10 +1000
commitee135c8d5b39b0cb8b301a83e286285ab926dca7 (patch)
tree952f654c4767b501d734041c94b12a0f23e66502 /src/txorphanage.h
parent38a11c355acfc15134c682571b3d92f66b0e7c3c (diff)
downloadbitcoin-ee135c8d5b39b0cb8b301a83e286285ab926dca7.tar.xz
txorphanage: Extract AddChildrenToWorkSet
Extract some common code into AddChildrenToWorkSet function. (It's a hard knock life)
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r--src/txorphanage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h
index d8dfaec8a0..c57249265e 100644
--- a/src/txorphanage.h
+++ b/src/txorphanage.h
@@ -26,6 +26,7 @@ struct COrphanTx {
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);
/** Map from txid to orphan transaction record. Limited by
* -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS */