Add comment explaining registered parameters in litecoin parser

This commit is contained in:
Martin Boehm 2018-10-09 12:13:38 +02:00
parent 84b457b34a
commit b888270f90

View File

@ -45,6 +45,9 @@ func NewLitecoinParser(params *chaincfg.Params, c *btc.Configuration) *LitecoinP
// GetChainParams contains network parameters for the main Litecoin network,
// and the test Litecoin network
func GetChainParams(chain string) *chaincfg.Params {
// register bitcoin parameters in addition to litecoin parameters
// litecoin has dual standard of addresses and we want to be able to
// parse both standards
if !chaincfg.IsRegistered(&chaincfg.MainNetParams) {
chaincfg.RegisterBitcoinParams()
}