From b11f1620e26e0149faedb78d9037344e97e2df71 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 17 Jan 2014 09:32:22 -0600 Subject: [PATCH] Remove warnings for errors that are returned. ok @owainga. --- opcode.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/opcode.go b/opcode.go index 2d54d946..67cbebbb 100644 --- a/opcode.go +++ b/opcode.go @@ -1723,7 +1723,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error { pubKey, err := btcec.ParsePubKey(pkStr, btcec.S256()) if err != nil { - log.Warnf("can't parse public key from string: %v", err) return err } @@ -1734,7 +1733,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error { signature, err = btcec.ParseSignature(sigStr, btcec.S256()) } if err != nil { - log.Warnf("can't parse signature from string: %v", err) return err } @@ -1745,10 +1743,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error { signature.R, signature.S, spew.Sdump(hash)) })) ok := ecdsa.Verify(pubKey, hash, signature.R, signature.S) - if !ok { - log.Warnf("ecdsa.Verify valid: %v", ok) - } - s.dstack.PushBool(ok) return nil }