Skip to content

Commit

Permalink
txscript: Remove unused isScriptHash function.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh authored and cfromknecht committed Feb 5, 2021
1 parent 5161238 commit f4b4bfa
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions txscript/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ func isSmallInt(op byte) bool {
return op == OP_0 || (op >= OP_1 && op <= OP_16)
}

// isScriptHash returns true if the script passed is a pay-to-script-hash
// transaction, false otherwise.
//
// DEPRECATED. Use isScriptHashScript or extractScriptHash instead.
func isScriptHash(pops []parsedOpcode) bool {
return len(pops) == 3 &&
pops[0].opcode.value == OP_HASH160 &&
pops[1].opcode.value == OP_DATA_20 &&
pops[2].opcode.value == OP_EQUAL
}

// IsPayToPubKey returns true if the script is in the standard pay-to-pubkey
// (P2PK) format, false otherwise.
func IsPayToPubKey(script []byte) bool {
Expand Down

0 comments on commit f4b4bfa

Please sign in to comment.