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

Don't just report which script error occurred, but which in which input of which transaction,
and which UTXO was being spent.
This commit is contained in:
Pieter Wuille
2024-10-18 06:53:44 -04:00
parent 146a3d5426
commit 7b267c034f
2 changed files with 9 additions and 8 deletions

View File

@@ -347,7 +347,7 @@ public:
CScriptCheck(CScriptCheck&&) = default;
CScriptCheck& operator=(CScriptCheck&&) = default;
std::optional<ScriptError> operator()();
std::optional<std::pair<ScriptError, std::string>> operator()();
};
// CScriptCheck is used a lot in std::vector, make sure that's efficient