aboutsummaryrefslogtreecommitdiff
path: root/src/node/txdownloadman.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/txdownloadman.h')
-rw-r--r--src/node/txdownloadman.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/txdownloadman.h b/src/node/txdownloadman.h
index 28ca90c554..81b0c76e0a 100644
--- a/src/node/txdownloadman.h
+++ b/src/node/txdownloadman.h
@@ -134,7 +134,8 @@ public:
/** Deletes all txrequest announcements and orphans for a given peer. */
void DisconnectedPeer(NodeId nodeid);
- /** New inv has been received. May be added as a candidate to txrequest.
+ /** Consider adding this tx hash to txrequest. Should be called whenever a new inv has been received.
+ * Also called internally when a transaction is missing parents so that we can request them.
* @param[in] p2p_inv When true, only add this announcement if we don't already have the tx.
* Returns true if this was a dropped inv (p2p_inv=true and we already have the tx), false otherwise. */
bool AddTxAnnouncement(NodeId peer, const GenTxid& gtxid, std::chrono::microseconds now, bool p2p_inv);