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.
Declared in <node/txdownloadman_impl.h>
bool
AddTxAnnouncement(
NodeId peer,
GenTxid const& gtxid,
std::chrono::microseconds now);
True if the inv was dropped because we already have the tx, false otherwise.
| Name | Description |
|---|---|
| peer | The peer announcing the transaction. |
| gtxid | The announced transaction identifier. |
| now | The current time, used to schedule request delays. |