[#TxRequestTracker-ComputePriority]
= xref:TxRequestTracker.adoc[TxRequestTracker]::ComputePriority
:relfileprefix: ../
:mrdocs:

Access to the internal priority computation (testing only)

== Synopsis

Declared in `&lt;txrequest&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint64&lowbar;t
ComputePriority(
    xref:uint256.adoc[uint256] const& txhash,
    xref:NodeId-08.adoc[NodeId] peer,
    bool preferred) const;
----

== Return Value

The computed priority value used for tiebreaking&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txhash*
| Transaction hash to compute the priority for&period;
| *peer*
| Peer the priority is computed for&period;
| *preferred*
| Whether the announcement is from a preferred peer&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
