[#node-MakeTxOrphanage-05]
= xref:node.adoc[node]::MakeTxOrphanage
:relfileprefix: ../
:mrdocs:

Create a new TxOrphanage instance with explicit limits&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::unique&lowbar;ptr&lt;TxOrphanage&gt;
MakeTxOrphanage(
    xref:node/TxOrphanage/Count.adoc[TxOrphanage::Count] max&lowbar;global&lowbar;latency&lowbar;score,
    xref:node/TxOrphanage/Usage.adoc[TxOrphanage::Usage] reserved&lowbar;peer&lowbar;usage) noexcept;
----

== Return Value

A new orphanage configured with the given limits&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *max&lowbar;global&lowbar;latency&lowbar;score*
| Maximum global latency score allowed&period;
| *reserved&lowbar;peer&lowbar;usage*
| Reserved usage per peer, in weight units&period;
|===


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