2016-07-14 04:37:50 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "github.com/roasbeef/btcd/chaincfg"
|
|
|
|
|
|
|
|
// activeNetParams is a pointer to the parameters specific to the currently
|
|
|
|
// active bitcoin network.
|
2017-01-06 00:08:08 +03:00
|
|
|
var activeNetParams = testNetParams
|
2016-07-14 04:37:50 +03:00
|
|
|
|
|
|
|
// netParams couples the p2p parameters of a network with the corresponding RPC
|
|
|
|
// port of a daemon running on the particular network.
|
|
|
|
type netParams struct {
|
|
|
|
*chaincfg.Params
|
|
|
|
rpcPort string
|
|
|
|
}
|
|
|
|
|
|
|
|
// testNetParams contains parameters specific to the 3rd version of the test network.
|
|
|
|
var testNetParams = netParams{
|
|
|
|
Params: &chaincfg.TestNet3Params,
|
|
|
|
rpcPort: "18334",
|
|
|
|
}
|
|
|
|
|
|
|
|
// simNetParams contains parameters specific to the simulation test network.
|
|
|
|
var simNetParams = netParams{
|
|
|
|
Params: &chaincfg.SimNetParams,
|
|
|
|
rpcPort: "18556",
|
|
|
|
}
|