38 lines
900 B
Go
38 lines
900 B
Go
// Copyright (c) 2020 The Decred developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/decred/dcrd/chaincfg/v3"
|
|
)
|
|
|
|
type netParams struct {
|
|
*chaincfg.Params
|
|
DcrdRPCServerPort string
|
|
WalletRPCServerPort string
|
|
BlockExplorerURL string
|
|
}
|
|
|
|
var mainNetParams = netParams{
|
|
Params: chaincfg.MainNetParams(),
|
|
DcrdRPCServerPort: "9109",
|
|
WalletRPCServerPort: "9110",
|
|
BlockExplorerURL: "https://dcrdata.decred.org",
|
|
}
|
|
|
|
var testNet3Params = netParams{
|
|
Params: chaincfg.TestNet3Params(),
|
|
DcrdRPCServerPort: "19109",
|
|
WalletRPCServerPort: "19110",
|
|
BlockExplorerURL: "https://testnet.dcrdata.org",
|
|
}
|
|
|
|
var simNetParams = netParams{
|
|
Params: chaincfg.SimNetParams(),
|
|
DcrdRPCServerPort: "19556",
|
|
WalletRPCServerPort: "19557",
|
|
BlockExplorerURL: "...",
|
|
}
|