[#node-TxOrphanage-UsageByPeer]
= xref:node.adoc[node]::xref:node/TxOrphanage.adoc[TxOrphanage]::UsageByPeer
:relfileprefix: ../../
:mrdocs:

Total usage (weight) of orphans for which this peer is an announcer&period; If an orphan has multiple announcers, its weight will be accounted for in each PeerOrphanInfo, so the total of all peers&apos; UsageByPeer() may be larger than TotalOrphanUsage()&period; Similarly, UsageByPeer() may be far higher than ReservedPeerUsage(), particularly if many peers have provided the same orphans&period;

== Synopsis

Declared in `&lt;node&sol;txorphanage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:node/TxOrphanage/Usage.adoc[Usage]
UsageByPeer(xref:NodeId-08.adoc[NodeId] peer) const = 0;
----

== Return Value

The combined weight of orphans announced by `peer&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| The peer to measure usage for&period;
|===


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