aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_persist.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-08-26 19:35:00 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-09-28 22:49:41 +0200
commitc16ae717689295338025dde74c0a7a51965c383f (patch)
tree10eb204bb7c38e4c67b7eec05fc9fee54ab343a0 /test/functional/mempool_persist.py
parentd812cf11896a2214467b6fa72d7b763bac6077c5 (diff)
test: switch MiniWallet padding unit from weight to vsize
The weight unit is merely a consensus rule detail and is largely irrelevant for fee-rate calculations and mempool policy rules (e.g. for package relay and TRUC limits), so there doesn't seem to be any value of using a granularity that we can't even guarantee to reach exactly anyway. Switch to the more natural unit of vsize instead, which simplifies both the padding implementation and the current tests that take use of this padding. The rather annoying multiplications by `WITNESS_SCALE_FACTOR` can then be removed and weird-looking magic numbers like `4004` can be replaced by numbers that are more connected to actual policy limit constants from the codebase, e.g. `1001` for exceeding `TRUC_CHILD_MAX_VSIZE` by one.
Diffstat (limited to 'test/functional/mempool_persist.py')
0 files changed, 0 insertions, 0 deletions