diff options
| author | Mark Friedenbach <[email protected]> | 2014-03-21 12:27:44 -0700 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-10-01 19:14:38 +0200 |
| commit | f74fc9b22d7f39e36d0cbf80f5c06958c516c8ec (patch) | |
| tree | c06904958ab512254cf9d6a83baaf87e57f9c962 /src/main.cpp | |
| parent | When transaction outputs exceed inputs, show the offending amounts so as to a... (diff) | |
| download | discoin-f74fc9b22d7f39e36d0cbf80f5c06958c516c8ec.tar.xz discoin-f74fc9b22d7f39e36d0cbf80f5c06958c516c8ec.zip | |
Print input index when signature validation fails, to aid debugging.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index c1fabdd55..7bb61f251 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } |