From ffe80c736a237b60698df747303bad499fe9d8a3 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 13 Mar 2019 01:11:46 -0500 Subject: [PATCH] txscript: Remove unused isPubkeyHash function. --- txscript/standard.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/txscript/standard.go b/txscript/standard.go index 01fce735..15fc3829 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -105,17 +105,6 @@ func isPubkeyAlt(pops []parsedOpcode) bool { pops[2].opcode.value == OP_CHECKSIGALT } -// isPubkeyHash returns true if the script passed is a pay-to-pubkey-hash -// transaction, false otherwise. -func isPubkeyHash(pops []parsedOpcode) bool { - return len(pops) == 5 && - 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 && - pops[4].opcode.value == OP_CHECKSIG -} - // isPubkeyHashAlt returns true if the script passed is a pay-to-pubkey-hash // transaction, false otherwise. func isPubkeyHashAlt(pops []parsedOpcode) bool {