Add comment explaining registered parameters in litecoin parser
This commit is contained in:
parent
84b457b34a
commit
b888270f90
@ -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()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user