jmcore.transaction_policy
jmcore.transaction_policy
Shared Bitcoin transaction fingerprint policy.
Attributes
MAX_LOCKTIME = 4294967295
module-attribute
NON_RBF_LOCKTIME_SEQUENCE = 4294967294
module-attribute
RBF_SEQUENCE = 4294967293
module-attribute
Classes
RandomSource
Bases: Protocol
Randomness interface needed by anti-fee-sniping locktime selection.
Source code in jmcore/src/jmcore/transaction_policy.py
14 15 16 17 | |
Methods:
randint(start: int, end: int) -> int
Source code in jmcore/src/jmcore/transaction_policy.py
17 | |
Functions:
compute_tx_locktime(current_height: int, rng: RandomSource = secure_random) -> int
Return a reference-compatible anti-fee-sniping locktime.
Source code in jmcore/src/jmcore/transaction_policy.py
20 21 22 23 24 25 26 27 28 29 30 31 32 | |