mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
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
@ -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…
x
Reference in New Issue
Block a user