bitcoin/test/functional/test_framework
laanwj e282764e04
Merge bitcoin/bitcoin#25228: test: add BIP-125 rule 5 testcase with default mempool
687addaf13 test: add BIP-125 rule 5 testcase with default mempool (James O'Beirne)
6120e8e287 test: allow passing sequence through create_self_transfer_multi (James O'Beirne)

Pull request description:

  Currently, we only test rule 5 of BIP-125 (replacement transactions cannot evict more than 100 transactions) by changing default mempool parameters to allow for more descendants. The current test works on a single transaction graph that has over 100 descendants.

  This patch adds a test to exercise rule 5 using the default mempool parameters. The case is a little more sophisticated: instead of working on a single transaction graph, it uses a replacement transaction to "unite" several UTXOs which join independent transaction graphs. The total number of transactions in these graphs sum to more than the max allowable replacement.

  I think the difference in transaction topology makes this a worthwhile testcase to have, setting aside the fact that this testcase works without having to use atypical mempool params.

  See also: [relevant discussion from IRC](https://www.erisian.com.au/bitcoin-core-dev/log-2022-05-27.html#l-126)

ACKs for top commit:
  laanwj:
    Code review ACK 687addaf13
  LarryRuane:
    ACK 687addaf13

Tree-SHA512: e589aeaf9d6f137d546b7809f8795d6f6043d87b15e97c2efe85b42ce8b49d977ee7d79440c542ca4b0b5ca2de527488029841a1ffc0d96c5771897df4b3f324
2022-06-07 20:49:33 +02:00
..
__init__.py
address.py
authproxy.py
bdb.py
bip340_test_vectors.csv
blocktools.py
coverage.py
descriptors.py
key.py
messages.py test: make BIP157 messages default-constructible (MESSAGEMAP compatibility) 2022-05-13 13:53:25 +02:00
muhash.py
netutil.py
p2p.py test: p2p: add missing BIP157 message types to MESSAGEMAP 2022-05-13 13:37:46 +02:00
ripemd160.py
script.py
script_util.py
segwit_addr.py
siphash.py
socks5.py
test_framework.py test: add `is_bitcoin_util_compiled` helper 2022-04-11 21:54:49 +02:00
test_node.py test: stop node before calling assert_start_raises_init_error 2022-04-29 22:50:26 +02:00
test_shell.py
util.py rpc: Put undocumented JSON failure mode behind a runtime flag 2022-05-18 10:50:59 -07:00
wallet.py Merge bitcoin/bitcoin#25228: test: add BIP-125 rule 5 testcase with default mempool 2022-06-07 20:49:33 +02:00
wallet_util.py