0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00
bitcoin-core/test/functional/test_framework
Sebastian Falbesoner c16ae71768 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.
2024-09-28 22:49:41 +02:00
..
crypto
__init__.py
address.py test: check that keyless P2A 'signing' via signrawtransactionwithkey succeeds 2024-08-02 20:13:07 +02:00
authproxy.py
bdb.py
bip340_test_vectors.csv
blockfilter.py
blocktools.py test: [refactor] Fix E714 pycodestyle 2024-08-29 07:00:27 +02:00
coverage.py
descriptors.py
key.py
mempool_util.py test: Add missing sync_mempools() to fill_mempool() 2024-09-24 10:13:21 +02:00
messages.py test: fix constructor of msg_tx 2024-07-30 17:49:07 -04:00
netutil.py
p2p.py
psbt.py
script.py test: Make leaf_script mandatory when scriptpath is set in TaprootSignatureMsg 2024-07-31 09:57:42 +02:00
script_util.py test: Add anchor mempool acceptance test 2024-07-30 14:06:58 -04:00
segwit_addr.py
socks5.py
test_framework.py qa: Consider cache and config.ini relative to invocation directory 2024-07-16 22:06:47 +01:00
test_node.py test: add null block xor key 2024-08-25 08:43:37 -04:00
test_shell.py test: fix TestShell initialization (late follow-up for #30463) 2024-08-25 20:57:22 +02:00
util.py Merge bitcoin/bitcoin#29566: test: update satoshi_round function 2024-09-04 13:26:57 -04:00
v2_p2p.py
wallet.py test: switch MiniWallet padding unit from weight to vsize 2024-09-28 22:49:41 +02:00
wallet_util.py