Update all comments and test coverage with new func name
This commit is contained in:
parent
83a19b239d
commit
8a743c344a
3 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
package btcscript
|
||||
|
||||
// ScriptType is an enum type that represents the type of a script. It is
|
||||
// returned from ScriptToAddress as part of the metadata about the script.
|
||||
// returned from ScriptToAddrHash as part of the metadata about the script.
|
||||
// It implements the Stringer interface for nice printing.
|
||||
type ScriptType int
|
||||
|
||||
|
@ -31,7 +31,7 @@ var scriptTypeToName = []string{
|
|||
ScriptAddr: "Addr",
|
||||
ScriptPubKey: "Pubkey",
|
||||
ScriptStrange: "Strange",
|
||||
ScriptGeneration: "Generation", // ScriptToAddress does not recieve enough information to identify Generation scripts.
|
||||
ScriptGeneration: "Generation", // ScriptToAddrHash does not recieve enough information to identify Generation scripts.
|
||||
}
|
||||
|
||||
type pkformat struct {
|
||||
|
|
|
@ -74,7 +74,7 @@ var StackErrTooManyOperations = errors.New("Too many operations in script")
|
|||
// the stack is over MaxScriptElementSize.
|
||||
var StackErrElementTooBig = errors.New("Element in script too large")
|
||||
|
||||
// StackErrUnknownAddress is returned when ScriptToAddress does not recognise
|
||||
// StackErrUnknownAddress is returned when ScriptToAddrHash does not recognise
|
||||
// the pattern of the script and thus can not find the address for payment.
|
||||
var StackErrUnknownAddress = errors.New("non-recognised address")
|
||||
|
||||
|
@ -97,11 +97,11 @@ var StackErrEmptyStack = errors.New("Stack empty at end of execution")
|
|||
var StackErrP2SHNonPushOnly = errors.New("pay to script hash with non " +
|
||||
"pushonly input")
|
||||
|
||||
// StackErrInvalidParseType is an internal error returned from ScriptToAddress
|
||||
// StackErrInvalidParseType is an internal error returned from ScriptToAddrHash
|
||||
// ony if the internal data tables are wrong.
|
||||
var StackErrInvalidParseType = errors.New("internal error: invalid parsetype found")
|
||||
|
||||
// StackErrInvalidAddrOffset is an internal error returned from ScriptToAddress
|
||||
// StackErrInvalidAddrOffset is an internal error returned from ScriptToAddrHash
|
||||
// ony if the internal data tables are wrong.
|
||||
var StackErrInvalidAddrOffset = errors.New("internal error: invalid offset found")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
github.com/conformal/btcscript/address.go scriptToAddressTemplate 100.00% (58/58)
|
||||
github.com/conformal/btcscript/address.go scriptToAddrHashTemplate 100.00% (45/45)
|
||||
github.com/conformal/btcscript/script.go Script.Step 100.00% (37/37)
|
||||
github.com/conformal/btcscript/script.go parseScriptTemplate 100.00% (30/30)
|
||||
github.com/conformal/btcscript/opcode.go parsedOpcode.bytes 100.00% (23/23)
|
||||
|
@ -89,7 +89,7 @@ github.com/conformal/btcscript/script.go setStack 100.00% (3/3)
|
|||
github.com/conformal/btcscript/stack.go fromBool 100.00% (3/3)
|
||||
github.com/conformal/btcscript/script.go scriptUInt32 100.00% (3/3)
|
||||
github.com/conformal/btcscript/opcode.go opcodeCodeSeparator 100.00% (2/2)
|
||||
github.com/conformal/btcscript/address.go ScriptToAddress 100.00% (2/2)
|
||||
github.com/conformal/btcscript/address.go ScriptToAddrHash 100.00% (2/2)
|
||||
github.com/conformal/btcscript/stack.go Stack.NipN 100.00% (2/2)
|
||||
github.com/conformal/btcscript/opcode.go opcodeDepth 100.00% (2/2)
|
||||
github.com/conformal/btcscript/script.go GetSigOpCount 100.00% (2/2)
|
||||
|
@ -147,5 +147,5 @@ github.com/conformal/btcscript/script.go Script.Execute 44.44% (8/18)
|
|||
github.com/conformal/btcscript/log.go SetLogWriter 0.00% (0/7)
|
||||
github.com/conformal/btcscript/script.go IsPushOnlyScript 0.00% (0/4)
|
||||
github.com/conformal/btcscript/log.go logClosure.String 0.00% (0/1)
|
||||
github.com/conformal/btcscript --------------------------- 96.44% (949/984)
|
||||
github.com/conformal/btcscript --------------------------- 96.40% (936/971)
|
||||
|
||||
|
|
Loading…
Reference in a new issue