-
Notifications
You must be signed in to change notification settings - Fork 152
/
params.go
44 lines (38 loc) · 1.27 KB
/
params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2013-2015 The btcsuite developers
// Copyright (c) 2016-2017 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package netparams
import "github.com/decred/dcrd/chaincfg"
// Params is used to group parameters for various networks such as the main
// network and test networks.
type Params struct {
*chaincfg.Params
JSONRPCClientPort string
JSONRPCServerPort string
GRPCServerPort string
}
// MainNetParams contains parameters specific running dcrwallet and
// dcrd on the main network (wire.MainNet).
var MainNetParams = Params{
Params: &chaincfg.MainNetParams,
JSONRPCClientPort: "9109",
JSONRPCServerPort: "9110",
GRPCServerPort: "9111",
}
// TestNet3Params contains parameters specific running dcrwallet and
// dcrd on the test network (version 3) (wire.TestNet3).
var TestNet3Params = Params{
Params: &chaincfg.TestNet3Params,
JSONRPCClientPort: "19109",
JSONRPCServerPort: "19110",
GRPCServerPort: "19111",
}
// SimNetParams contains parameters specific to the simulation test network
// (wire.SimNet).
var SimNetParams = Params{
Params: &chaincfg.SimNetParams,
JSONRPCClientPort: "19556",
JSONRPCServerPort: "19557",
GRPCServerPort: "19558",
}