Litecoin: Adjust ports
This commit is contained in:
parent
769a617e58
commit
9fbcdaedb1
@ -8,7 +8,7 @@ import binascii
|
||||
import zmq
|
||||
import struct
|
||||
|
||||
port = 28332
|
||||
port = 29332
|
||||
|
||||
zmqContext = zmq.Context()
|
||||
zmqSubSocket = zmqContext.socket(zmq.SUB)
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
# ...
|
||||
|
||||
@ -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
|
||||
|
||||
@ -21,7 +21,7 @@ class ZMQTest (BitcoinTestFramework):
|
||||
super().__init__()
|
||||
self.num_nodes = 4
|
||||
|
||||
port = 28332
|
||||
port = 29332
|
||||
|
||||
def setup_nodes(self):
|
||||
self.zmqContext = zmq.Context()
|
||||
|
||||
@ -32,7 +32,7 @@ class CBaseMainParams : public CBaseChainParams
|
||||
public:
|
||||
CBaseMainParams()
|
||||
{
|
||||
nRPCPort = 8332;
|
||||
nRPCPort = 9332;
|
||||
}
|
||||
};
|
||||
static CBaseMainParams mainParams;
|
||||
@ -45,7 +45,7 @@ class CBaseTestNetParams : public CBaseChainParams
|
||||
public:
|
||||
CBaseTestNetParams()
|
||||
{
|
||||
nRPCPort = 18332;
|
||||
nRPCPort = 19332;
|
||||
strDataDir = "testnet3";
|
||||
}
|
||||
};
|
||||
@ -59,7 +59,7 @@ class CBaseRegTestParams : public CBaseChainParams
|
||||
public:
|
||||
CBaseRegTestParams()
|
||||
{
|
||||
nRPCPort = 18332;
|
||||
nRPCPort = 19332;
|
||||
strDataDir = "regtest";
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user