mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Print input index when signature validation fails, to aid debugging.
This commit is contained in:
parent
217a5c9238
commit
f74fc9b22d
@ -1317,7 +1317,7 @@ void UpdateCoins(const CTransaction& tx, CValidationState &state, CCoinsViewCach
|
||||
bool CScriptCheck::operator()() const {
|
||||
const CScript &scriptSig = ptxTo->vin[nIn].scriptSig;
|
||||
if (!VerifyScript(scriptSig, scriptPubKey, *ptxTo, nIn, nFlags))
|
||||
return error("CScriptCheck() : %s VerifySignature failed", ptxTo->GetHash().ToString());
|
||||
return error("CScriptCheck() : %s:%d VerifySignature failed", ptxTo->GetHash().ToString(), nIn);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user