Pick the transaction with the fewest send attempts, and confirmations, and oldest send/confirm times.
Declared in <private_broadcast.h>
[[requires_capability(0x7f950ef0cbe8), requires_capability(0x7f950e3e7b08), requires_capability(0x7f9502a9e4f8)]]
std::optional<CTransactionRef>
PickTxForSend(
NodeId const& will_send_to_nodeid,
CService const& will_send_to_address);
Most urgent transaction or nullopt if there are no transactions with send attempts remaining.
| Name | Description |
|---|---|
| will_send_to_nodeid [in] | Will remember that the returned transaction was picked for sending to this node. Calling this method more than once with the same will_send_to_nodeid is not allowed because sending more than one transaction to one node would be a privacy leak. |
| will_send_to_address [in] | Address of the peer to which this transaction will be sent. |