Skip to content

Commit

Permalink
txscript: Remove unused isWitnessScriptHash
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Feb 5, 2021
1 parent 7f10c29 commit 7032bd5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions txscript/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ func IsPayToScriptHash(script []byte) bool {
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
// pay-to-witness-script-hash (P2WSH) format, false otherwise.
func IsPayToWitnessScriptHash(script []byte) bool {
Expand Down

0 comments on commit 7032bd5

Please sign in to comment.