netparams

package
v0.13.109 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainNetParams = Params{
	Params:        &chaincfg.MainNetParams,
	RPCClientPort: "9245",
	RPCServerPort: "9244",
}

MainNetParams contains parameters specific running lbcwallet and

on the main network (wire.MainNet).
View Source
var RegTestParams = Params{
	Params:        &chaincfg.RegressionNetParams,
	RPCClientPort: "29245",
	RPCServerPort: "29244",
}

RegNetParams contains parameters specific to the regression test network (wire.RegNet).

View Source
var SigNetParams = Params{
	Params:        &chaincfg.SigNetParams,
	RPCClientPort: "49245",
	RPCServerPort: "49244",
}

SigNetParams contains parameters specific to the signet test network (wire.SigNet).

View Source
var SimNetParams = Params{
	Params:        &chaincfg.SimNetParams,
	RPCClientPort: "39245",
	RPCServerPort: "39244",
}

SimNetParams contains parameters specific to the simulation test network (wire.SimNet).

View Source
var TestNet3Params = Params{
	Params:        &chaincfg.TestNet3Params,
	RPCClientPort: "19245",
	RPCServerPort: "19244",
}

TestNet3Params contains parameters specific running lbcwallet and

on the test network (version 3) (wire.TestNet3).

Functions

func SigNetWire

func SigNetWire(params *chaincfg.Params) wire.BitcoinNet

SigNetWire is a helper function that either returns the given chain parameter's net value if the parameter represents a signet network or 0 if it's not. This is necessary because there can be custom signet networks that have a different net value.

Types

type Params

type Params struct {
	*chaincfg.Params
	RPCClientPort string
	RPCServerPort string
}

Params is used to group parameters for various networks such as the main network and test networks.

Jump to

Keyboard shortcuts

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