txscript: Remove unused isWitnessScriptHash
This commit is contained in:
parent
6e0abb61bd
commit
0edfee87d6
1 changed files with 0 additions and 8 deletions
|
@ -78,14 +78,6 @@ func IsPayToScriptHash(script []byte) bool {
|
||||||
return isScriptHashScript(script)
|
return isScriptHashScript(script)
|
||||||
}
|
}
|
||||||
|
|
||||||
// isWitnessScriptHash returns true if the passed script is a
|
|
||||||
// pay-to-witness-script-hash transaction, false otherwise.
|
|
||||||
func isWitnessScriptHash(pops []parsedOpcode) bool {
|
|
||||||
return len(pops) == 2 &&
|
|
||||||
pops[0].opcode.value == OP_0 &&
|
|
||||||
pops[1].opcode.value == OP_DATA_32
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsPayToWitnessScriptHash returns true if the is in the standard
|
// IsPayToWitnessScriptHash returns true if the is in the standard
|
||||||
// pay-to-witness-script-hash (P2WSH) format, false otherwise.
|
// pay-to-witness-script-hash (P2WSH) format, false otherwise.
|
||||||
func IsPayToWitnessScriptHash(script []byte) bool {
|
func IsPayToWitnessScriptHash(script []byte) bool {
|
||||||
|
|
Loading…
Reference in a new issue