bitcoin/src/script
merge-script a4fd565191
Merge bitcoin/bitcoin#31727: miniscript: convert non-critical asserts to CHECK_NONFATAL
ff0194a7ce miniscript: convert non-critical asserts to CHECK_NONFATAL (Antoine Poinsot)

Pull request description:

  The Miniscript code contains assertions to prevent ending up in an insane state or prevent UB, but also to enforce logical invariants. For the latter it is not necessary to crash the program if they are broken. Raising an exception suffices, especially as this code is often called through the RPC interface which can in turn handle the exception and the user can report it to developers.

  This revives #28678 from Pieter Wuille.

ACKs for top commit:
  hodlinator:
    ACK ff0194a7ce
  TheCharlatan:
    ACK ff0194a7ce
  brunoerg:
    code review ACK ff0194a7ce

Tree-SHA512: 8ed8f7b494e46ecf7cdebe75120cd0ffe543b6bc289bf882dac631fe2ec2cae590d5f7bc2316e52db085791694b136dffbc71c40c1e16886fa53ab00bd8cabd0
2025-04-10 14:06:21 -04:00
..
descriptor.cpp descriptors refactor: Clarify multipath data relationships through local struct 2025-03-29 20:46:54 +01:00
descriptor.h descriptors: Change Parse to return vector of descriptors 2024-08-08 12:47:22 -04:00
interpreter.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
interpreter.h scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
keyorigin.h Implement operator< for KeyOriginInfo and CExtPubKey 2021-12-10 08:29:47 -05:00
miniscript.cpp Merge bitcoin/bitcoin#31727: miniscript: convert non-critical asserts to CHECK_NONFATAL 2025-04-10 14:06:21 -04:00
miniscript.h Merge bitcoin/bitcoin#31727: miniscript: convert non-critical asserts to CHECK_NONFATAL 2025-04-10 14:06:21 -04:00
parsing.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
parsing.h scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01: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
script.cpp policy: Add OP_1 <0x4e73> as a standard output type 2024-07-30 14:06:58 -04:00
script.h Allow CScript's operator<< to accept spans, not just vectors 2024-09-11 17:41:27 +02:00
sigcache.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
sigcache.h scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
sign.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
sign.h refactor: move SignSignature helpers to test utils 2024-09-04 21:06:09 +02:00
signingprovider.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
signingprovider.h scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
solver.cpp scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00
solver.h scripted-diff: Bump copyright headers after std::span changes 2025-03-12 19:46:54 +01:00