Documentation ¶
Index ¶
Constants ¶
View Source
const Testnet4 wire.BitcoinNet = 0x1c163f28
Variables ¶
View Source
var MainNetParams = Params{ Params: &chaincfg.MainNetParams, RPCClientPort: "8334", RPCServerPort: "8332", }
MainNetParams contains parameters specific running btcwallet and btcd on the main network (wire.MainNet).
View Source
var RegtestParams = Params{ Params: &chaincfg.RegressionNetParams, RPCClientPort: "18444", RPCServerPort: "18443", }
View Source
var SigNetParams = Params{ Params: &chaincfg.SigNetParams, RPCClientPort: "38334", RPCServerPort: "38332", }
SigNetParams contains parameters specific to the signet test network (wire.SigNet).
View Source
var SimNetParams = Params{ Params: &chaincfg.SimNetParams, RPCClientPort: "18556", RPCServerPort: "18554", }
SimNetParams contains parameters specific to the simulation test network (wire.SimNet).
View Source
var TestNet3Params = Params{ Params: &chaincfg.TestNet3Params, RPCClientPort: "18334", RPCServerPort: "18332", }
TestNet3Params contains parameters specific running btcwallet and btcd on the test network (version 3) (wire.TestNet3).
View Source
var TestNet4ChainParams = chaincfg.Params{ Name: "testnet4", Net: Testnet4, DefaultPort: "48333", DNSSeeds: []chaincfg.DNSSeed{ {"seed.testnet4.bitcoin.sprovoost.nl", true}, {"seed.testnet4.wiz.biz", true}, }, GenesisBlock: &testNet4GenesisBlock, GenesisHash: testNet4GenesisHash, PowLimit: testNet3PowLimit, PowLimitBits: 0x1d00ffff, BIP0034Height: 1, BIP0065Height: 1, BIP0066Height: 1, CoinbaseMaturity: 100, SubsidyReductionInterval: 210000, TargetTimespan: time.Hour * 24 * 14, TargetTimePerBlock: time.Minute * 10, RetargetAdjustmentFactor: 4, ReduceMinDifficulty: true, MinDiffReductionTime: time.Minute * 20, GenerateSupported: false, Checkpoints: []chaincfg.Checkpoint{}, RuleChangeActivationThreshold: 1512, MinerConfirmationWindow: 2016, Deployments: [chaincfg.DefinedDeployments]chaincfg.ConsensusDeployment{ chaincfg.DeploymentTestDummy: { BitNumber: 28, DeploymentStarter: chaincfg.NewMedianTimeDeploymentStarter( time.Unix(1199145601, 0), ), DeploymentEnder: chaincfg.NewMedianTimeDeploymentEnder( time.Unix(1230767999, 0), ), }, chaincfg.DeploymentTaproot: { BitNumber: 2, DeploymentStarter: alwaysOkStarter, DeploymentEnder: alwaysOkStarter, MinActivationHeight: 0, }, }, RelayNonStdTxs: true, Bech32HRPSegwit: "tb", PubKeyHashAddrID: 0x6f, ScriptHashAddrID: 0xc4, WitnessPubKeyHashAddrID: 0x03, WitnessScriptHashAddrID: 0x28, PrivateKeyID: 0xef, HDPrivateKeyID: [4]byte{0x04, 0x35, 0x83, 0x94}, HDPublicKeyID: [4]byte{0x04, 0x35, 0x87, 0xcf}, HDCoinType: 1, }
View Source
var TestNet4Params = Params{ Params: &TestNet4ChainParams, RPCClientPort: "48334", RPCServerPort: "48332", }
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 ¶
Click to show internal directories.
Click to hide internal directories.