Browse Source

changed regtest RPCport to 18443 to avoid conflict with testnet 18332

0.16
Ferdinando M. Ametrano 7 years ago committed by Ferdinando M. Ametrano
parent
commit
ce3baa193f
  1. 7
      contrib/linearize/example-linearize.cfg
  2. 4
      contrib/rpm/bitcoin.spec
  3. 3
      doc/REST-interface.md
  4. 2
      src/chainparamsbase.cpp

7
contrib/linearize/example-linearize.cfg

@ -3,9 +3,16 @@ rpcuser=someuser
rpcpassword=somepassword rpcpassword=somepassword
#datadir=~/.bitcoin #datadir=~/.bitcoin
host=127.0.0.1 host=127.0.0.1
#mainnet default
port=8332 port=8332
#testnet default
#port=18332 #port=18332
#regtest default
#port=18443
# bootstrap.dat hashlist settings (linearize-hashes) # bootstrap.dat hashlist settings (linearize-hashes)
max_height=313000 max_height=313000

4
contrib/rpm/bitcoin.spec

@ -336,6 +336,8 @@ done
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 8333 %{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 8333
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18332 %{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18332
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18333 %{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18333
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18443
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 18444
%{_sbindir}/fixfiles -R bitcoin-server restore &> /dev/null || : %{_sbindir}/fixfiles -R bitcoin-server restore &> /dev/null || :
%{_sbindir}/restorecon -R %{_localstatedir}/lib/bitcoin || : %{_sbindir}/restorecon -R %{_localstatedir}/lib/bitcoin || :
fi fi
@ -355,6 +357,8 @@ if [ $1 -eq 0 ]; then
%{_sbindir}/semanage port -d -p tcp 8333 %{_sbindir}/semanage port -d -p tcp 8333
%{_sbindir}/semanage port -d -p tcp 18332 %{_sbindir}/semanage port -d -p tcp 18332
%{_sbindir}/semanage port -d -p tcp 18333 %{_sbindir}/semanage port -d -p tcp 18333
%{_sbindir}/semanage port -d -p tcp 18443
%{_sbindir}/semanage port -d -p tcp 18444
for selinuxvariant in %{selinux_variants}; do for selinuxvariant in %{selinux_variants}; do
%{_sbindir}/semodule -s ${selinuxvariant} -r bitcoin &> /dev/null || : %{_sbindir}/semodule -s ${selinuxvariant} -r bitcoin &> /dev/null || :
done done

3
doc/REST-interface.md

@ -3,7 +3,8 @@ Unauthenticated REST Interface
The REST API can be enabled with the `-rest` option. The REST API can be enabled with the `-rest` option.
The interface runs on the same port as the JSON-RPC interface, by default port 8332 for mainnet and port 18332 for testnet. The interface runs on the same port as the JSON-RPC interface, by default port 8332 for mainnet, port 18332 for testnet,
and port 18443 for regtest.
Supported API Supported API
------------- -------------

2
src/chainparamsbase.cpp

@ -57,7 +57,7 @@ class CBaseRegTestParams : public CBaseChainParams
public: public:
CBaseRegTestParams() CBaseRegTestParams()
{ {
nRPCPort = 18332; nRPCPort = 18443;
strDataDir = "regtest"; strDataDir = "regtest";
} }
}; };

Loading…
Cancel
Save