3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Suppress noisy log line during signing.

This commit is contained in:
Mike Hearn 2014-10-06 13:57:45 +02:00
parent 4a27afaac0
commit 83995e9284

View File

@ -1269,9 +1269,11 @@ public class Script {
} 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("Signature checking failed! {}", e1.toString());
// Don't dump a stack trace here because we sometimes expect this to fail inside
// LocalTransactionSigner.signInputs().
// This RuntimeException occurs when signing as we run partial/invalid scripts to see if they need more
// signing work to be done inside LocalTransactionSigner.signInputs.
if (!e1.getMessage().contains("Reached past end of ASN.1 stream"))
log.warn("Signature checking failed! {}", e1.toString());
}
if (opcode == OP_CHECKSIG)