node::MakeTxOrphanage

Create a new TxOrphanage instance with explicit limits.

Synopsis

Declared in <node/txorphanage.h>

std::unique_ptr<TxOrphanage>
MakeTxOrphanage(
    TxOrphanage::Count max_global_latency_score,
    TxOrphanage::Usage reserved_peer_usage) noexcept;

Return Value

A new orphanage configured with the given limits.

Parameters

NameDescription
max_global_latency_scoreMaximum global latency score allowed.
reserved_peer_usageReserved usage per peer, in weight units.