aboutsummaryrefslogtreecommitdiff
path: root/test/rpc-tests/maxblocksinflight.py
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-09-30 17:07:12 -0400
committerAva Chow <github@achow101.com>2024-09-30 17:07:12 -0400
commitfc642c33ef28829eda0119a0fe39fd9bc4b84051 (patch)
tree805d41a2729dc13863f456d430593b49a8f157b0 /test/rpc-tests/maxblocksinflight.py
parentd7f956a309e36a18da6765d6ea852f557e6dc87b (diff)
parent940edd6ac24e921f639b1376fe7d35dc14c1887d (diff)
downloadbitcoin-master.tar.xz
Merge bitcoin/bitcoin#30718: test: switch MiniWallet padding unit from weight to vsizeHEADmaster
940edd6ac24e921f639b1376fe7d35dc14c1887d test: refactor: introduce and use `TRUC_CHILD_MAX_VSIZE` constant (Sebastian Falbesoner) c16ae717689295338025dde74c0a7a51965c383f test: switch MiniWallet padding unit from weight to vsize (Sebastian Falbesoner) Pull request description: This PR is a late follow-up for #30162, where I retrospectively consider the padding unit of choice as a mistake. The weight unit is merely a consensus rule detail and is largely irrelevant from a user's perspective w.r.t. 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 (no "round up to the next multiple of 4" anymore) 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. The second commits introduces a constant for that. ACKs for top commit: glozow: reACK 940edd6 via range-diff instagibbs: reACK 940edd6ac24e921f639b1376fe7d35dc14c1887d maflcko: re-ACK 940edd6ac24e921f639b1376fe7d35dc14c1887d 🍷 achow101: ACK 940edd6ac24e921f639b1376fe7d35dc14c1887d Tree-SHA512: 35325f22bbe548664273051b705059b8f2f4316215be116c71b8c21dc87d190b3e8fcc4a48f04deaba2f3632a9c809d272b0bae654cf74d7492759554c0f0d14
Diffstat (limited to 'test/rpc-tests/maxblocksinflight.py')
0 files changed, 0 insertions, 0 deletions