Skip to content

Commit

Permalink
Litecoin: Adjust ports
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasher- committed Jan 4, 2017
1 parent 769a617 commit 9fbcdae
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion contrib/zmq/zmq_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import zmq
import struct

port = 28332
port = 29332

zmqContext = zmq.Context()
zmqSubSocket = zmqContext.socket(zmq.SUB)
Expand Down
8 changes: 4 additions & 4 deletions doc/release-notes-litecoin.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ arbitrary TCP connections inside SSL. On e.g. Ubuntu it can be installed with:

sudo apt-get install stunnel4

Then, to tunnel a SSL connection on 28332 to a RPC server bound on localhost on port 18332 do:
Then, to tunnel a SSL connection on 29332 to a RPC server bound on localhost on port 19332 do:

stunnel -d 28332 -r 127.0.0.1:18332 -p stunnel.pem -P ''
stunnel -d 29332 -r 127.0.0.1:19332 -p stunnel.pem -P ''

It can also be set up system-wide in inetd style.

Expand All @@ -381,8 +381,8 @@ caching. A sample config for apache2 could look like:
SSLCertificateKeyFile /etc/apache2/ssl/server.key

<Location /litecoinrpc>
ProxyPass http://127.0.0.1:8332/
ProxyPassReverse http://127.0.0.1:8332/
ProxyPass http://127.0.0.1:9332/
ProxyPassReverse http://127.0.0.1:9332/
# optional enable digest auth
# AuthType Digest
# ...
Expand Down
2 changes: 1 addition & 1 deletion doc/zmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ address. The same address can be used in more than one notification.

For instance:

$ litecoind -zmqpubhashtx=tcp://127.0.0.1:28332 \
$ litecoind -zmqpubhashtx=tcp://127.0.0.1:29332 \
-zmqpubrawtx=ipc:///tmp/litecoind.tx.raw

Each PUB notification has a topic and body, where the header
Expand Down
2 changes: 1 addition & 1 deletion qa/rpc-tests/zmq_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self):
super().__init__()
self.num_nodes = 4

port = 28332
port = 29332

def setup_nodes(self):
self.zmqContext = zmq.Context()
Expand Down
6 changes: 3 additions & 3 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 = 8332;
nRPCPort = 9332;
}
};
static CBaseMainParams mainParams;
Expand All @@ -45,7 +45,7 @@ class CBaseTestNetParams : public CBaseChainParams
public:
CBaseTestNetParams()
{
nRPCPort = 18332;
nRPCPort = 19332;
strDataDir = "testnet3";
}
};
Expand All @@ -59,7 +59,7 @@ class CBaseRegTestParams : public CBaseChainParams
public:
CBaseRegTestParams()
{
nRPCPort = 18332;
nRPCPort = 19332;
strDataDir = "regtest";
}
};
Expand Down

0 comments on commit 9fbcdae

Please sign in to comment.