Skip to content

Commit

Permalink
Merge pull request #12 from JokerCatz/master
Browse files Browse the repository at this point in the history
change default port 8332 to 7116 at doc & tip
  • Loading branch information
fudong1127 committed Jan 13, 2018
2 parents da43cd4 + 953beb3 commit b34581e
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion contrib/debian/examples/bitcoin.conf
Expand Up @@ -110,7 +110,7 @@
#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96

# Listen for RPC connections on this TCP port:
#rpcport=8332
#rpcport=7116

# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
# running on another host using this option:
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/README.md
Expand Up @@ -11,7 +11,7 @@ Required configuration file settings for linearize-hashes:

Optional config file setting for linearize-hashes:
* RPC: `host` (Default: `127.0.0.1`)
* RPC: `port` (Default: `8332`)
* RPC: `port` (Default: `7116`)
* Blockchain: `min_height`, `max_height`
* `rev_hash_bytes`: If true, the written block hash list will be
byte-reversed. (In other words, the hash returned by getblockhash will have its
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/example-linearize.cfg
Expand Up @@ -2,7 +2,7 @@
rpcuser=someuser
rpcpassword=somepassword
host=127.0.0.1
port=8332
port=7116
#port=18332

# bootstrap.dat hashlist settings (linearize-hashes)
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/linearize-hashes.py
Expand Up @@ -115,7 +115,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'] = 8332
settings['port'] = 7116
if 'min_height' not in settings:
settings['min_height'] = 0
if 'max_height' not in settings:
Expand Down
4 changes: 2 additions & 2 deletions contrib/rpm/bitcoin.spec
Expand Up @@ -334,7 +334,7 @@ if [ `%{_sbindir}/sestatus |grep -c "disabled"` -eq 0 ]; then
for selinuxvariant in %{selinux_variants}; do
%{_sbindir}/semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/bitcoin.pp &> /dev/null || :
done
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 8332
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 7116
%{_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 18333
Expand All @@ -353,7 +353,7 @@ fi
# SELinux
if [ $1 -eq 0 ]; then
if [ `%{_sbindir}/sestatus |grep -c "disabled"` -eq 0 ]; then
%{_sbindir}/semanage port -d -p tcp 8332
%{_sbindir}/semanage port -d -p tcp 7116
%{_sbindir}/semanage port -d -p tcp 8333
%{_sbindir}/semanage port -d -p tcp 18332
%{_sbindir}/semanage port -d -p tcp 18333
Expand Down
4 changes: 2 additions & 2 deletions doc/REST-interface.md
Expand Up @@ -3,7 +3,7 @@ Unauthenticated REST Interface

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 7116 for mainnet and port 18332 for testnet.

Supported API
-------------
Expand Down Expand Up @@ -95,4 +95,4 @@ Only supports JSON as output format.

Risks
-------------
Running a web browser on the same node with a REST enabled bitcoind can be a risk. Accessing prepared XSS websites could read out tx/block data of your node by placing links like `<script src="http://127.0.0.1:8332/rest/tx/1234567890.json">` which might break the nodes privacy.
Running a web browser on the same node with a REST enabled bitcoind can be a risk. Accessing prepared XSS websites could read out tx/block data of your node by placing links like `<script src="http://127.0.0.1:7116/rest/tx/1234567890.json">` which might break the nodes privacy.
2 changes: 1 addition & 1 deletion doc/developer-notes.md
Expand Up @@ -184,7 +184,7 @@ Threads

- ThreadFlushWalletDB : Close the wallet.dat file if it hasn't been used in 500ms.

- ThreadRPCServer : Remote procedure call handler, listens on port 8332 for connections and services them.
- ThreadRPCServer : Remote procedure call handler, listens on port 7116 for connections and services them.

- BitcoinMiner : Generates bitcoins (if wallet is enabled).

Expand Down
2 changes: 1 addition & 1 deletion doc/man/bitcoin-cli.1
Expand Up @@ -48,7 +48,7 @@ Send commands to node running on <ip> (default: 127.0.0.1)
.HP
\fB\-rpcport=\fR<port>
.IP
Connect to JSON\-RPC on <port> (default: 8332 or testnet: 18332)
Connect to JSON\-RPC on <port> (default: 7116 or testnet: 18332)
.HP
\fB\-rpcwait\fR
.IP
Expand Down
2 changes: 1 addition & 1 deletion doc/man/bitcoin-qt.1
Expand Up @@ -491,7 +491,7 @@ option can be specified multiple times
.HP
\fB\-rpcport=\fR<port>
.IP
Listen for JSON\-RPC connections on <port> (default: 8332 or testnet:
Listen for JSON\-RPC connections on <port> (default: 7116 or testnet:
18332)
.HP
\fB\-rpcallowip=\fR<ip>
Expand Down
2 changes: 1 addition & 1 deletion doc/man/bitcoind.1
Expand Up @@ -496,7 +496,7 @@ option can be specified multiple times
.HP
\fB\-rpcport=\fR<port>
.IP
Listen for JSON\-RPC connections on <port> (default: 8332 or testnet:
Listen for JSON\-RPC connections on <port> (default: 7116 or testnet:
18332)
.HP
\fB\-rpcallowip=\fR<ip>
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Expand Up @@ -518,7 +518,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:8332/\n";
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:7116/\n";
}

void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface)
Expand Down

0 comments on commit b34581e

Please sign in to comment.