Skip to content

Commit

Permalink
Fixed RPC port for the proper functioning of the exchange.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyboozer committed Oct 21, 2017
1 parent 215db9f commit f8760b6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion contrib/debian/examples/desire.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96

# Listen for RPC connections on this TCP port:
#rpcport=9998
#rpcport=9918

# You can use Desire or desired to send commands to Desire/desired
# running on another host using this option:
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/example-linearize-testnet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
rpcuser=someuser
rpcpassword=somepassword
host=127.0.0.1
port=19998
port=19918

# bootstrap.dat hashlist settings (linearize-hashes)
max_height=3130000
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/example-linearize.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
rpcuser=someuser
rpcpassword=somepassword
host=127.0.0.1
port=9998
port=9918

# bootstrap.dat hashlist settings (linearize-hashes)
max_height=3130000
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/linearize-hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_block_hashes(settings, max_blocks_per_call=10000):
if 'host' not in settings:
settings['host'] = '127.0.0.1'
if 'port' not in settings:
settings['port'] = 9998
settings['port'] = 9918
if 'min_height' not in settings:
settings['min_height'] = 0
if 'max_height' not in settings:
Expand Down
2 changes: 1 addition & 1 deletion contrib/spendfrom/spendfrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def connect_JSON(config):
testnet = config.get('testnet', '0')
testnet = (int(testnet) > 0) # 0/1 in config file, convert to True/False
if not 'rpcport' in config:
config['rpcport'] = 19998 if testnet else 9998
config['rpcport'] = 19918 if testnet else 9918
connect = "http://%s:%[email protected]:%s"%(config['rpcuser'], config['rpcpassword'], config['rpcport'])
try:
result = ServiceProxy(connect)
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/bitcoin/release-notes-0.7.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Bug fixes

* Clicking on a bitcoin: URI on Windows should now launch Bitcoin-Qt properly.

* When running -testnet, use RPC port 19998 by default.
* When running -testnet, use RPC port 19918 by default.

* Better detection and handling of corrupt wallet.dat and blkindex.dat files.
Previous versions would crash with a DB_RUNRECOVERY exception, this
Expand Down
4 changes: 2 additions & 2 deletions src/chainparamsbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CBaseMainParams : public CBaseChainParams
public:
CBaseMainParams()
{
nRPCPort = 9998;
nRPCPort = 9918;
}
};
static CBaseMainParams mainParams;
Expand All @@ -45,7 +45,7 @@ class CBaseTestNetParams : public CBaseChainParams
public:
CBaseTestNetParams()
{
nRPCPort = 19998;
nRPCPort = 19918;
strDataDir = "testnet3";
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/rpcserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg
std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
{
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", "
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/\n";
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:9918/\n";
}

void RPCRegisterTimerInterface(RPCTimerInterface *iface)
Expand Down

0 comments on commit f8760b6

Please sign in to comment.