Documentation ¶
Index ¶
- Variables
- type ChainIndex
- type Params
- func (activeNet *Params) Chain(id uint32) *chaincfg.Params
- func (activeNet *Params) Chains() map[uint32]struct{}
- func (activeNet *Params) Enabled(chainID uint32) bool
- func (activeNet *Params) InitShardsParams(client *rpcclient.Client) error
- func (activeNet *Params) WithEnabledChains(chains []uint32) *Params
Constants ¶
This section is empty.
Variables ¶
View Source
var FastNetParams = Params{ Beacon: &chaincfg.FastNetParams, RPCClientPort: chaincfg.FastNetParams.DefaultRPCPort, RPCServerPort: "19335", }
FastNetParams contains parameters specific running jaxwallet and jaxnetd on the test network (wire.FastNet).
View Source
var MainNetParams = Params{ Beacon: &chaincfg.MainNetParams, RPCClientPort: "8334", RPCServerPort: "8332", }
MainNetParams contains parameters specific running jaxwallet and btcd on the main network (wire.MainNet).
View Source
var SimNetParams = Params{ Beacon: &chaincfg.SimNetParams, RPCClientPort: "18556", RPCServerPort: "18554", }
SimNetParams contains parameters specific to the simulation test network (wire.SimNet).
View Source
var TestNet3Params = Params{ Beacon: &chaincfg.TestNetParams, RPCClientPort: "18334", RPCServerPort: "18332", }
TestNet3Params contains parameters specific running jaxwallet and btcd on the test network (version 3) (wire.TestNet3).
Functions ¶
This section is empty.
Types ¶
type ChainIndex ¶
type ChainIndex map[uint32]struct{}
type Params ¶
type Params struct { Beacon *chaincfg.Params Shards map[uint32]*chaincfg.Params RPCClientPort string RPCServerPort string // contains filtered or unexported fields }
Params is used to group parameters for various networks such as the main network and test networks.
func (*Params) InitShardsParams ¶
func (*Params) WithEnabledChains ¶
Click to show internal directories.
Click to hide internal directories.