Actually just fail the opcode, not returning an error.
should fix some crazy script on testnet.
This commit is contained in:
parent
f0e7011b6f
commit
f4a6449ad3
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,6 @@ import (
|
|||
"crypto/sha1"
|
||||
"crypto/sha256"
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/conformal/btcec"
|
||||
"github.com/conformal/btcwire"
|
||||
|
@ -1667,7 +1666,8 @@ func opcodeCheckSig(op *parsedOpcode, s *Script) error {
|
|||
// at least 1 byte for the below. btcec will check full length upon
|
||||
// parsing the signature.
|
||||
if len(sigStr) < 1 {
|
||||
return errors.New("Short signature")
|
||||
s.dstack.PushBool(false)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Trim off hashtype from the signature string.
|
||||
|
|
Loading…
Reference in a new issue