netparams

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: ISC Imports: 4 Imported by: 0

Documentation

Index

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) Chain

func (activeNet *Params) Chain(id uint32) *chaincfg.Params

func (*Params) Chains

func (activeNet *Params) Chains() map[uint32]struct{}

func (*Params) Enabled

func (activeNet *Params) Enabled(chainID uint32) bool

func (*Params) InitShardsParams

func (activeNet *Params) InitShardsParams(client *rpcclient.Client) error

func (*Params) WithEnabledChains

func (activeNet *Params) WithEnabledChains(chains []uint32) *Params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL