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

Name

Description

txhash

Transaction hash to compute the priority for.

peer

Peer the priority is computed for.

preferred

Whether the announcement is from a preferred peer.

Created with MrDocs