Remove warnings for errors that are returned.

ok @owainga.
This commit is contained in:
Dave Collins 2014-01-17 09:32:22 -06:00
parent 565f11409c
commit b11f1620e2

View file

@ -1723,7 +1723,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error {
pubKey, err := btcec.ParsePubKey(pkStr, btcec.S256()) pubKey, err := btcec.ParsePubKey(pkStr, btcec.S256())
if err != nil { if err != nil {
log.Warnf("can't parse public key from string: %v", err)
return err return err
} }
@ -1734,7 +1733,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error {
signature, err = btcec.ParseSignature(sigStr, btcec.S256()) signature, err = btcec.ParseSignature(sigStr, btcec.S256())
} }
if err != nil { if err != nil {
log.Warnf("can't parse signature from string: %v", err)
return err return err
} }
@ -1745,10 +1743,6 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error {
signature.R, signature.S, spew.Sdump(hash)) signature.R, signature.S, spew.Sdump(hash))
})) }))
ok := ecdsa.Verify(pubKey, hash, signature.R, signature.S) ok := ecdsa.Verify(pubKey, hash, signature.R, signature.S)
if !ok {
log.Warnf("ecdsa.Verify valid: %v", ok)
}
s.dstack.PushBool(ok) s.dstack.PushBool(ok)
return nil return nil
} }