dash/test/functional/test_framework
Wladimir J. van der Laan c0d211a356 Merge #14457: test: add invalid tx templates for use in functional tests
59e387705c7e55ec40400301346354fa2d0c613f test: add invalid tx templates for use in functional tests (James O'Beirne)

Pull request description:

  This change adds a list of `CTransaction`-generating templates which each correspond to a specific type of invalid transaction. We then use this list to test for a wider variety of invalid tx types in `p2p_invalid_tx.py` and `feature_block.py`.

  Consolidating all invalid tx types will allow us to more easily cover all tx reject cases from a variety of tests without repeating ourselves. Validation logic doesn't differ much between mempool and block acceptance, but there *is* a difference and we should be sure we're testing both comprehensively.

  Right now, I've only added templates covering the tx reject types listed below but if this approach seems worthwhile I will expand the list to be fully comprehensive.
  ```
  bad-txns-in-belowout
  bad-txns-inputs-duplicate
  bad-txns-too-many-sigops
  bad-txns-vin-empty
  bad-txns-vout-empty
  bad-txns-vout-negative
  ```

Tree-SHA512: 05407f4a953fbd7c44c08bb49bb989cefd39a2b05ea00f5b3c92197a3f05e1b302f789e33832445734220e1c333d133aba385740b77b84139b170c583471ce20
2022-01-20 13:09:17 -05:00
..
__init__.py
address.py Merge #14324: qa: Run more tests with wallet disabled 2021-09-24 18:48:44 -04:00
authproxy.py Merge #18596: test: Try once more when RPC connection fails on Windows 2021-09-28 14:46:44 -04:00
bignum.py
blocktools.py Merge #14457: test: add invalid tx templates for use in functional tests 2022-01-20 13:09:17 -05:00
coverage.py Some Dashification (#3513) 2020-06-11 11:39:04 +03:00
descriptors.py merge bitcoin#15368: Descriptor checksums 2021-10-28 14:01:02 +05:30
key.py Merge #20326: tests: Fix ecdsa_verify in test framework 2021-12-28 00:27:11 -05:00
messages.py merge bitcoin#16850: servicesnames field in getpeerinfo and getnetworkinfo 2021-12-12 18:57:02 +05:30
mininode.py merge bitcoin#14719: Check specific reject reasons in feature_block 2021-12-18 16:51:40 +05:30
netutil.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
script.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
siphash.py
socks5.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
test_framework.py Merge pull request #4636 from PastaPastaPasta/develop-trivial-2021-12-21 2021-12-29 00:44:05 +03:00
test_node.py Merge #16804: test: Remove unused try-block in assert_debug_log 2021-11-25 06:38:16 +05:30
util.py Merge #16918: test: Make PORT_MIN in test runner configurable 2021-12-15 20:10:00 +05:30