Add a default net port parameter to each network.
ok @jrick
This commit is contained in:
parent
01799eeff1
commit
218f8df5ba
1 changed files with 12 additions and 8 deletions
|
@ -50,6 +50,7 @@ type Checkpoint struct {
|
||||||
type Params struct {
|
type Params struct {
|
||||||
Name string
|
Name string
|
||||||
Net btcwire.BitcoinNet
|
Net btcwire.BitcoinNet
|
||||||
|
DefaultPort string
|
||||||
|
|
||||||
// Chain parameters
|
// Chain parameters
|
||||||
GenesisBlock *btcwire.MsgBlock
|
GenesisBlock *btcwire.MsgBlock
|
||||||
|
@ -85,6 +86,7 @@ type Params struct {
|
||||||
var MainNetParams = Params{
|
var MainNetParams = Params{
|
||||||
Name: "mainnet",
|
Name: "mainnet",
|
||||||
Net: btcwire.MainNet,
|
Net: btcwire.MainNet,
|
||||||
|
DefaultPort: "8333",
|
||||||
|
|
||||||
// Chain parameters
|
// Chain parameters
|
||||||
GenesisBlock: &genesisBlock,
|
GenesisBlock: &genesisBlock,
|
||||||
|
@ -140,6 +142,7 @@ var MainNetParams = Params{
|
||||||
var RegressionNetParams = Params{
|
var RegressionNetParams = Params{
|
||||||
Name: "regtest",
|
Name: "regtest",
|
||||||
Net: btcwire.TestNet,
|
Net: btcwire.TestNet,
|
||||||
|
DefaultPort: "18444",
|
||||||
|
|
||||||
// Chain parameters
|
// Chain parameters
|
||||||
GenesisBlock: ®TestGenesisBlock,
|
GenesisBlock: ®TestGenesisBlock,
|
||||||
|
@ -180,6 +183,7 @@ var RegressionNetParams = Params{
|
||||||
var TestNet3Params = Params{
|
var TestNet3Params = Params{
|
||||||
Name: "testnet3",
|
Name: "testnet3",
|
||||||
Net: btcwire.TestNet3,
|
Net: btcwire.TestNet3,
|
||||||
|
DefaultPort: "18333",
|
||||||
|
|
||||||
// Chain parameters
|
// Chain parameters
|
||||||
GenesisBlock: &testNet3GenesisBlock,
|
GenesisBlock: &testNet3GenesisBlock,
|
||||||
|
|
Loading…
Add table
Reference in a new issue