From 62f2be328457ec90b13ccf1353186efe50c80f23 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 23 Jul 2021 12:13:31 -0400 Subject: [PATCH] [lbry] txscript: remove claim prefix for addr calculation --- txscript/standard.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/txscript/standard.go b/txscript/standard.go index 44902971..2437b3cc 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -906,6 +906,8 @@ func scriptHashToAddrs(hash []byte, params *chaincfg.Params) []btcutil.Address { // with an invalid script version error. func ExtractPkScriptAddrs(pkScript []byte, chainParams *chaincfg.Params) (ScriptClass, []btcutil.Address, int, error) { + pkScript = StripClaimScriptPrefix(pkScript) + // Check for pay-to-pubkey-hash script. if hash := extractPubKeyHash(pkScript); hash != nil { return PubKeyHashTy, pubKeyHashToAddrs(hash, chainParams), 1, nil