HomePhabricator

[validation] Add detailed txin/txout information for script error messages

Description

[validation] Add detailed txin/txout information for script error messages

Summary:
Don't just report which script error occurred, but which in which input of which transaction,
and which UTXO was being spent.

This is a partial backport of core#31112
https://github.com/bitcoin/bitcoin/pull/31112/commits/7b267c034fdc2c8cb964a763f182ff98a75ba2ac

Also revert a temporary hack in checkqueue.h that was needed to work around a GCC 12 bug.

Depends on D18877

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18878

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Oct 18 2024, 10:53
PiRKCommitted on Wed, Nov 5, 20:46
PiRKPushed on Wed, Nov 5, 20:46
Reviewer
Restricted Project
Differential Revision
D18878: [validation] Add detailed txin/txout information for script error messages
Parents
rABCda83158d475d: [validation] Make script error messages uniform for parallel/single validation
Branches
Unknown
Tags
Unknown