chains: add net params for TBC and LTC main net

This commit is contained in:
Olaoluwa Osuntokun 2018-03-15 02:00:44 -07:00
parent 8f4a8fcf57
commit 3bf6626f73
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -37,6 +37,14 @@ var bitcoinTestNetParams = bitcoinNetParams{
CoinType: keychain.CoinTypeTestnet,
}
// bitcoinMainNetParams contains parameters specific to the current Bitcoin
// mainnet.
var bitcoinMainNetParams = bitcoinNetParams{
Params: &bitcoinCfg.MainNetParams,
rpcPort: "8334",
CoinType: keychain.CoinTypeBitcoin,
}
// bitcoinSimNetParams contains parameters specific to the simulation test
// network.
var bitcoinSimNetParams = bitcoinNetParams{
@ -45,8 +53,6 @@ var bitcoinSimNetParams = bitcoinNetParams{
CoinType: keychain.CoinTypeTestnet,
}
// TODO(roasbeef): blacklist ipv6 local host as well
// litecoinTestNetParams contains parameters specific to the 4th version of the
// test network.
var litecoinTestNetParams = litecoinNetParams{
@ -55,6 +61,14 @@ var litecoinTestNetParams = litecoinNetParams{
CoinType: keychain.CoinTypeTestnet,
}
// litecoinMainNetParams contains the parameters specific to the current
// Litecoin mainnet.
var litecoinMainNetParams = litecoinNetParams{
Params: &litecoinCfg.MainNetParams,
rpcPort: "9334",
CoinType: keychain.CoinTypeLitecoin,
}
// regTestNetParams contains parameters specific to a local regtest network.
var regTestNetParams = bitcoinNetParams{
Params: &bitcoinCfg.RegressionNetParams,