Pick the transaction with the fewest send attempts, and confirmations, and oldest send/confirm times.

Synopsis

Declared in <private_broadcast.h>

[[requires_capability(0x7f2e376845a8), requires_capability(0x7f2e219d1b28), requires_capability(0x7f2e1ac64d58)]]
std::optional<CTransactionRef>
PickTxForSend(
    NodeId const& will_send_to_nodeid,
    CService const& will_send_to_address);

Return Value

Most urgent transaction or nullopt if there are no transactions with send attempts remaining.

Parameters

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.

Created with MrDocs