2015-12-01 19:44:58 +01:00
|
|
|
// Copyright (c) 2013-2015 The btcsuite developers
|
|
|
|
// Use of this source code is governed by an ISC
|
|
|
|
// license that can be found in the LICENSE file.
|
2015-11-25 06:21:40 +01:00
|
|
|
|
|
|
|
package netparams
|
|
|
|
|
2016-05-05 21:04:36 +02:00
|
|
|
import "github.com/roasbeef/btcd/chaincfg"
|
2015-11-25 06:21:40 +01:00
|
|
|
|
|
|
|
// Params is used to group parameters for various networks such as the main
|
|
|
|
// network and test networks.
|
|
|
|
type Params struct {
|
|
|
|
*chaincfg.Params
|
|
|
|
RPCClientPort string
|
|
|
|
RPCServerPort string
|
|
|
|
}
|
|
|
|
|
|
|
|
// MainNetParams contains parameters specific running btcwallet and
|
|
|
|
// btcd on the main network (wire.MainNet).
|
|
|
|
var MainNetParams = Params{
|
|
|
|
Params: &chaincfg.MainNetParams,
|
|
|
|
RPCClientPort: "8334",
|
|
|
|
RPCServerPort: "8332",
|
|
|
|
}
|
|
|
|
|
|
|
|
// TestNet3Params contains parameters specific running btcwallet and
|
|
|
|
// btcd on the test network (version 3) (wire.TestNet3).
|
|
|
|
var TestNet3Params = Params{
|
|
|
|
Params: &chaincfg.TestNet3Params,
|
|
|
|
RPCClientPort: "18334",
|
|
|
|
RPCServerPort: "18332",
|
|
|
|
}
|
|
|
|
|
|
|
|
// SimNetParams contains parameters specific to the simulation test network
|
|
|
|
// (wire.SimNet).
|
|
|
|
var SimNetParams = Params{
|
|
|
|
Params: &chaincfg.SimNetParams,
|
|
|
|
RPCClientPort: "18556",
|
|
|
|
RPCServerPort: "18554",
|
|
|
|
}
|