TxRequestTracker::ComputePriority

Access to the internal priority computation (testing only)

Synopsis

Declared in <txrequest.h>

uint64_t
ComputePriority(
    uint256 const& txhash,
    NodeId peer,
    bool preferred) const;

Return Value

The computed priority value used for tiebreaking.

Parameters

NameDescription
txhashTransaction hash to compute the priority for.
peerPeer the priority is computed for.
preferredWhether the announcement is from a preferred peer.