jmcore.fee_policy
jmcore.fee_policy
Shared minimum miner-fee policy for CoinJoin participants.
Classes
MinimumFeeRateExceedsCapError
Bases: ValueError
Raised when a required minimum fee rate exceeds the configured cap.
Source code in jmcore/src/jmcore/fee_policy.py
12 13 14 15 16 17 18 | |
Attributes
fee_rate = fee_rate
instance-attribute
source = source
instance-attribute
Methods:
__init__(*, source: str, fee_rate: float) -> None
Source code in jmcore/src/jmcore/fee_policy.py
15 16 17 18 | |
Functions:
estimate_p2wpkh_vsize(num_inputs: int, num_outputs: int) -> int
Return the conservative P2WPKH virtual-size estimate used by CoinJoin.
Source code in jmcore/src/jmcore/fee_policy.py
21 22 23 | |
fee_rate_meets_minimum(fee: int, vsize: int, minimum_fee_rate: float) -> bool
Check whether an integer fee meets the exact minimum fee rate.
Source code in jmcore/src/jmcore/fee_policy.py
26 27 28 | |
resolve_min_fee_rate(backend: Any, *, static_floor: float, block_target: int, max_fee_rate: float) -> float
async
Resolve the maximum of static, mempool, and estimate fee floors within the cap.
Source code in jmcore/src/jmcore/fee_policy.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |