diff options
author | Mark Friedenbach <mark@monetize.io> | 2014-03-21 12:27:44 -0700 |
---|---|---|
committer | jtimon <jtimon@blockstream.io> | 2014-10-01 19:14:38 +0200 |
commit | f74fc9b22d7f39e36d0cbf80f5c06958c516c8ec (patch) | |
tree | c06904958ab512254cf9d6a83baaf87e57f9c962 /src | |
parent | 217a5c92380173ac43d303b1ba9548544121eefd (diff) |
Print input index when signature validation fails, to aid debugging.
Diffstat (limited to 'src')
-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 c1fabdd55e..7bb61f251c 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; } |