diff --git a/params.go b/params.go index fb0c4908..e3f30df9 100644 --- a/params.go +++ b/params.go @@ -302,7 +302,7 @@ func Register(params *Params) error { return ErrDuplicateNet } registeredNets[params.Net] = struct{}{} - pubKeyHashAddrIDs[params.ScriptHashAddrID] = struct{}{} + pubKeyHashAddrIDs[params.PubKeyHashAddrID] = struct{}{} scriptHashAddrIDs[params.ScriptHashAddrID] = struct{}{} return nil }