From fcdd0115c48a1b06448e9a4ff41502f3490758c0 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Sat, 23 Aug 2014 13:11:27 +0200 Subject: [PATCH] Slightly clearer comment and log message in Script.executeCheckSig. --- core/src/main/java/com/google/bitcoin/script/Script.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/script/Script.java b/core/src/main/java/com/google/bitcoin/script/Script.java index af727e74896..bd42808e073 100644 --- a/core/src/main/java/com/google/bitcoin/script/Script.java +++ b/core/src/main/java/com/google/bitcoin/script/Script.java @@ -1175,7 +1175,9 @@ private static void executeCheckSig(Transaction txContainingThis, int index, Scr } catch (Exception e1) { // There is (at least) one exception that could be hit here (EOFException, if the sig is too short) // Because I can't verify there aren't more, we use a very generic Exception catch - log.warn(e1.toString()); + log.warn("Signature checking failed! {}", e1.toString()); + // Don't dump a stack trace here because we sometimes expect this to fail inside + // LocalTransactionSigner.signInputs(). } if (opcode == OP_CHECKSIG)