txscript: Remove unused isPubkeyHashAlt function.

This commit is contained in:
Dave Collins 2019-03-13 01:12:43 -05:00
parent b19b6cbb40
commit 9e3269ec2d
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -95,18 +95,6 @@ func isOneByteMaxDataPush(po parsedOpcode) bool {
po.opcode.value == OP_DATA_1
}
// isPubkeyHashAlt returns true if the script passed is a pay-to-pubkey-hash
// transaction, false otherwise.
func isPubkeyHashAlt(pops []parsedOpcode) bool {
return len(pops) == 6 &&
pops[0].opcode.value == OP_DUP &&
pops[1].opcode.value == OP_HASH160 &&
pops[2].opcode.value == OP_DATA_20 &&
pops[3].opcode.value == OP_EQUALVERIFY &&
isOneByteMaxDataPush(pops[4]) &&
pops[5].opcode.value == OP_CHECKSIGALT
}
// multiSigDetails houses details extracted from a standard multisig script.
type multiSigDetails struct {
requiredSigs int