0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-13 11:25:02 -05:00
bitcoin-bitcoin-core/src/script
MarcoFalke fd557ceb88
Merge bitcoin/bitcoin#13533: [tests] Reduced number of validations in tx_validationcache_tests
c3e111a7da Reduced number of validations in `tx_validationcache_tests` to keep the run time reasonable. (lucash-dev)

Pull request description:

  Following a suggestion in the comments, changed `ValidateCheckInputsForAllFlags` from testing all possible flag combinations to testing a random subset. Also created a new enum constant for the highest flag, so that this test doesn’t keep testing an incomplete subset in case a new flag is added.

  Timing for `checkinputs_test`:
  ```
  Before:   6.8s
  After:    3.7s
  ----------------
  Saved:    3.1s (45%)
  ```

  This PR was split from #13050. Also see #10026.

ACKs for top commit:
  leonardojobim:
    tACK c3e111a7da.
  kallewoof:
    ACK c3e111a7da
  theStack:
    re-ACK c3e111a7da

Tree-SHA512: bef49645bdd4f61ec73cc77a9f028b95d9856db9446d2e7fc9a48867a6f0e94c2c9f150cb771a30fe852db0efb0a1bd15d38b00d712651793ccb59ff6157a7b4
2021-07-24 10:36:58 +02:00
..
bitcoinconsensus.cpp Make all SignatureChecker explicit about missing data 2021-03-15 17:29:39 -07:00
bitcoinconsensus.h build: test for __declspec(dllexport) in configure 2021-02-12 09:04:16 +08:00
descriptor.cpp Pass in DescriptorCache to ToNormalizedString 2021-06-24 14:08:45 -04:00
descriptor.h Pass in DescriptorCache to ToNormalizedString 2021-06-24 14:08:45 -04:00
interpreter.cpp [Refactor] Rename scriptPubKey -> exec_script 2021-07-19 03:16:00 -07:00
interpreter.h Merge bitcoin/bitcoin#13533: [tests] Reduced number of validations in tx_validationcache_tests 2021-07-24 10:36:58 +02:00
keyorigin.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
script.cpp scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
script.h Implement Tapscript script validation rules (BIP 342) 2020-10-12 17:18:24 -07:00
script_error.cpp Implement Tapscript script validation rules (BIP 342) 2020-10-12 17:18:24 -07:00
script_error.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
sigcache.cpp refactor: Replace &foo[0] with foo.data() 2021-05-04 06:55:31 +02:00
sigcache.h Make all SignatureChecker explicit about missing data 2021-03-15 17:29:39 -07:00
sign.cpp Make IsSegWitOutput return true for taproot outputs 2021-07-15 17:08:52 -07:00
sign.h Basic Taproot signing logic in script/sign.cpp 2021-06-12 12:25:28 -07:00
signingprovider.cpp Add TaprootSpendData data structure, equivalent to script map for P2[W]SH 2021-06-12 12:25:28 -07:00
signingprovider.h Add TaprootSpendData data structure, equivalent to script map for P2[W]SH 2021-06-12 12:25:28 -07:00
standard.cpp Avoid the use of P0083R3 std::set::merge 2021-06-25 10:42:05 -07:00
standard.h Taproot descriptor inference 2021-06-18 11:28:47 -07:00