Function chooseEntries
-
chooseEntries(
candidates: readonly EntryCandidate[],
options: { capBytes: number; z?: number },
): EntryCandidate[]Parameters
- candidates: readonly EntryCandidate[]
- options: { capBytes: number; z?: number }
Returns EntryCandidate[]
The candidates worth shipping: those whose
pis at least their break-even, best expected net first, kept while their entry bytes fit undercapBytes. A candidate that does not fit is skipped and a smaller one may still go. A path is chosen once. A candidate with apoutside 0 to 1 or a negative or non-finite size is never chosen. Withzabove 0, a candidate that has aweightis judged on the lower confidence bound of itsp(the Wilson bound atz), and the order follows the net at that bound; one with noweightkeeps itsp.