aboutsummaryrefslogtreecommitdiff
path: root/src/txorphanage.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-01-25 18:13:00 +1000
committerAnthony Towns <aj@erisian.com.au>2023-01-25 18:15:12 +1000
commitecb0a3e4259b81d6bb74d59a58eb65552c17d8d8 (patch)
tree876ac6f1c9bc0f0aa71cde58da1c2d386d634e45 /src/txorphanage.h
parentc5837757068bf8ea3e5b6fdad82f69d1deb81545 (diff)
downloadbitcoin-ecb0a3e4259b81d6bb74d59a58eb65552c17d8d8.tar.xz
net_processing: Don't process tx after processing orphans
If we made progress on orphans, consider that enough work for this peer for this round of ProcessMessages. This also allows cleaning up the api for TxOrphange:GetTxToReconsider().
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r--src/txorphanage.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h
index 55c02976dd..f886e07b12 100644
--- a/src/txorphanage.h
+++ b/src/txorphanage.h
@@ -27,13 +27,11 @@ public:
bool HaveTx(const GenTxid& gtxid) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
/** Extract a transaction from a peer's work set
- * Returns nullptr and sets more to false if there are no transactions
- * to work on. Otherwise returns the transaction reference, removes
- * the transaction from the work set, and sets "more" to indicate
- * if there are more orphans for this peer
- * to work on after this tx.
+ * Returns nullptr if there are no transactions to work on.
+ * Otherwise returns the transaction reference, and removes
+ * it from the work set.
*/
- CTransactionRef GetTxToReconsider(NodeId peer, bool& more) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
+ CTransactionRef GetTxToReconsider(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
/** Erase an orphan by txid */
int EraseTx(const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);