From 618cfc7cf177b2963a6a5f2691657a382d1ae453 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Fri, 25 Aug 2023 10:16:49 +0100 Subject: [PATCH] vspd: Remove simnet params. Simnet params were added in the very first commit of vspd purely because of copy/pasting from another project. vspd has never actually been tested on simnet, so its possible (probable) that it won't even operate correctly without additional dev work. If we want simnet to be a properly supported network it can be re-added and tested in the future. --- cmd/vspd/config.go | 4 +--- cmd/vspd/params.go | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/vspd/config.go b/cmd/vspd/config.go index d96140c..86ec4c2 100644 --- a/cmd/vspd/config.go +++ b/cmd/vspd/config.go @@ -51,7 +51,7 @@ type config struct { LogLevel string `long:"loglevel" ini-name:"loglevel" description:"Logging level." choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"critical"` MaxLogSize int64 `long:"maxlogsize" ini-name:"maxlogsize" description:"File size threshold for log file rotation (MB)."` LogsToKeep int `long:"logstokeep" ini-name:"logstokeep" description:"The number of rotated log files to keep."` - Network string `long:"network" ini-name:"network" description:"Decred network to use." choice:"testnet" choice:"mainnet" choice:"simnet"` + Network string `long:"network" ini-name:"network" description:"Decred network to use." choice:"testnet" choice:"mainnet"` VSPFee float64 `long:"vspfee" ini-name:"vspfee" description:"Fee percentage charged for VSP use. eg. 2.0 (2%), 0.5 (0.5%)."` DcrdHost string `long:"dcrdhost" ini-name:"dcrdhost" description:"The ip:port to establish a JSON-RPC connection with dcrd. Should be the same host where vspd is running."` DcrdUser string `long:"dcrduser" ini-name:"dcrduser" description:"Username for dcrd RPC connections."` @@ -283,8 +283,6 @@ func loadConfig() (*config, error) { cfg.netParams = &testNet3Params case "mainnet": cfg.netParams = &mainNetParams - case "simnet": - cfg.netParams = &simNetParams } // Ensure backup interval is greater than 30 seconds. diff --git a/cmd/vspd/params.go b/cmd/vspd/params.go index 3dd2654..861be11 100644 --- a/cmd/vspd/params.go +++ b/cmd/vspd/params.go @@ -34,11 +34,3 @@ var testNet3Params = netParams{ blockExplorerURL: "https://testnet.dcrdata.org", minWallets: 1, } - -var simNetParams = netParams{ - Params: chaincfg.SimNetParams(), - dcrdRPCServerPort: "19556", - walletRPCServerPort: "19557", - blockExplorerURL: "...", - minWallets: 1, -}