Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit f49768e

Browse files
-Fixing and adding some comments.
1 parent 02ef5fa commit f49768e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/jmclient/configure.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ def jm_single() -> AttributeDict:
400400
# where x > 1. It is a real number (so written as a decimal).
401401
bond_value_exponent = 1.3
402402
403+
# Maximum probability for a single maker to be included in a transaction. A value smaller
404+
# than 1 for tx_max_expected_probability constrains the probability of abnormally large
405+
# makers to be included in a transaction, by capping the value of their bonds as required
406+
# to reach this probability target.
407+
403408
tx_max_expected_probability = 1.0
404409
405410
##############################

src/jmclient/support.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,12 @@ def fidelity_bond_weighted_order_choose(orders, n, nrem = None, large_makers_not
227227
choose orders based on fidelity bond for improved sybil resistance
228228
229229
* with probability `bondless_makers_allowance`: will revert to previous default
230-
order choose (random_under_max_order_choose)
230+
order choose (random_under_max_order_choose) amongst bondless and bond makers
231231
* with probability `1 - bondless_makers_allowance`: if there are no bond offerings, revert
232-
to previous default as above, or if tx_max_expected_probability is defined and the number
233-
of bond offerings is smaller than n/tx_max_expected_probability. If not, choose
234-
randomly from those, with weighting being the fidelity bond values.
232+
to previous default amongst bondless makers, or if tx_max_expected_probability is defined and
233+
is sufficiently small to constrain the bond values of all remaining bond makers. If not, choose
234+
randomly from bond makers, with weighting being the fidelity bond values, with possible some of
235+
these weights capped if tx_max_expected_probability is defined and is smaller than 1.
235236
"""
236237

237238
if random.random() < get_bondless_makers_allowance():

0 commit comments

Comments
 (0)