This commit is contained in:
Owain G. Ainsworth 2013-07-31 01:31:27 +01:00
parent 927d846f06
commit 118014a5b4
2 changed files with 9 additions and 9 deletions

View file

@ -131,10 +131,10 @@ type ScriptClass byte
// Classes of script payment known about in the blockchain.
const (
PubKeyTy ScriptClass = iota // Pay pubkey.
PubKeyHashTy // Pay pubkey hash.
ScriptHashTy // Pay to script hash.
MultiSigTy // Multi signature.
NonStandardTy // None of the above.
PubKeyHashTy // Pay pubkey hash.
ScriptHashTy // Pay to script hash.
MultiSigTy // Multi signature.
NonStandardTy // None of the above.
)
// Script is the virtual machine that executes btcscripts.
@ -309,7 +309,7 @@ func parseScriptTemplate(script []byte, opcodemap map[byte]*opcode) ([]parsedOpc
default:
return retScript,
fmt.Errorf("invalid opcode length %d",
op.length)
op.length)
}
if err != nil {

View file

@ -1075,9 +1075,9 @@ var txTests = []txTest{
0xba, 0x67,
btcscript.OP_EQUAL,
},
idx: 0,
err: btcscript.StackErrShortScript,
bip16: true,
idx: 0,
err: btcscript.StackErrShortScript,
bip16: true,
},
txTest{
// sigscript changed so to be non pushonly.