Fix adding wrong HashAddrID to pubKeyHashAddrIDs

This commit is contained in:
GeertJohan 2014-06-13 01:00:59 +02:00
parent dc967b7cc8
commit a3091847b3

View File

@ -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
}