aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Friedenbach <mark@monetize.io>2014-03-21 12:27:44 -0700
committerjtimon <jtimon@blockstream.io>2014-10-01 19:14:38 +0200
commitf74fc9b22d7f39e36d0cbf80f5c06958c516c8ec (patch)
treec06904958ab512254cf9d6a83baaf87e57f9c962 /src
parent217a5c92380173ac43d303b1ba9548544121eefd (diff)
downloadbitcoin-f74fc9b22d7f39e36d0cbf80f5c06958c516c8ec.tar.xz
Print input index when signature validation fails, to aid debugging.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
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;
}