From 55564dc31fa4b974196a793e7aba947df23fcbd3 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 29 May 2014 16:32:30 -0500 Subject: [PATCH] Fix simnet RPC port. 18555 is the network port, and wallet cannot listen on this port. Instead, follow the pattern laid out by mainnet, testnet3, and regtest by listening on 18554 (one less than the network port). --- config.go | 2 +- params.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index ec53d5e..a088ca7 100644 --- a/config.go +++ b/config.go @@ -52,7 +52,7 @@ type config struct { RPCConnect string `short:"c" long:"rpcconnect" description:"Hostname/IP and port of btcd RPC server to connect to (default localhost:18334, mainnet: localhost:8334, simnet: localhost:18556)"` DebugLevel string `short:"d" long:"debuglevel" description:"Logging level {trace, debug, info, warn, error, critical}"` ConfigFile string `short:"C" long:"configfile" description:"Path to configuration file"` - SvrListeners []string `long:"rpclisten" description:"Listen for RPC/websocket connections on this interface/port (default port: 18332, mainnet: 8332, simnet: 18555)"` + SvrListeners []string `long:"rpclisten" description:"Listen for RPC/websocket connections on this interface/port (default port: 18332, mainnet: 8332, simnet: 18554)"` DataDir string `short:"D" long:"datadir" description:"Directory to store wallets and transactions"` Username string `short:"u" long:"username" description:"Username for client and btcd authorization"` Password string `short:"P" long:"password" default-mask:"-" description:"Password for client and btcd authorization"` diff --git a/params.go b/params.go index e1c630f..6a3c3aa 100644 --- a/params.go +++ b/params.go @@ -55,5 +55,5 @@ var simNetParams = params{ Params: &btcnet.SimNetParams, connect: "localhost:18556", btcdPort: "18556", - svrPort: "18555", + svrPort: "18554", }