decred.org/dcrwallet/v3@v3.1.0/internal/netparams/params.go (about)

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