Builds on top of #31097 (now merged). Fixes #30960.
So far, detailed information about script validation failures is only reported when running with -par=1
, due to a lack of ability to transfer information from the script validation threads to the validation thread. Fix this by extending the CCheckQueue
functionality to pass more results through than just success/failure, and use this to report the exact Script error, as well as the transaction input in which it occurred.