From c678a34afed405f92eed917c4d1b43039231841b Mon Sep 17 00:00:00 2001 From: Fernando Paredes Garcia Date: Thu, 19 May 2022 16:29:02 -0500 Subject: [PATCH] #73 Update Devcoin ports for mainnet, tesnet, signet and regtest. --- contrib/linearize/README.md | 2 +- contrib/linearize/example-linearize.cfg | 8 ++++---- contrib/linearize/linearize-hashes.py | 2 +- doc/JSON-RPC-interface.md | 2 +- doc/REST-interface.md | 8 ++++---- doc/fuzzing.md | 2 +- doc/man/devcoin-cli.1 | 6 +++--- doc/man/devcoin-qt.1 | 8 ++++---- doc/man/devcoind.1 | 8 ++++---- doc/release-notes/release-notes-0.10.0.md | 8 ++++---- doc/release-notes/release-notes-0.12.0.md | 8 ++++---- doc/release-notes/release-notes-0.15.0.md | 2 +- doc/release-notes/release-notes-0.16.0.md | 4 ++-- doc/release-notes/release-notes-0.18.0.md | 2 +- doc/release-notes/release-notes-0.20.0.md | 2 +- doc/release-notes/release-notes-0.7.1.md | 2 +- doc/tor.md | 4 ++-- share/examples/devcoin.conf | 2 +- src/chainparamsbase.cpp | 2 +- src/devcoin-cli.cpp | 2 +- src/rpc/util.cpp | 4 ++-- src/test/addrman_tests.cpp | 2 +- src/test/rpc_tests.cpp | 8 ++++---- test/functional/rpc_net.py | 8 ++++---- 24 files changed, 53 insertions(+), 53 deletions(-) diff --git a/contrib/linearize/README.md b/contrib/linearize/README.md index 5bf545c0..46e97540 100644 --- a/contrib/linearize/README.md +++ b/contrib/linearize/README.md @@ -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: `52332`) * 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 diff --git a/contrib/linearize/example-linearize.cfg b/contrib/linearize/example-linearize.cfg index 7ac1557f..be36216c 100644 --- a/contrib/linearize/example-linearize.cfg +++ b/contrib/linearize/example-linearize.cfg @@ -5,16 +5,16 @@ rpcpassword=somepassword host=127.0.0.1 #mainnet default -port=8332 +port=52332 #testnet default -#port=18332 +#port=62332 #regtest default -#port=18443 +#port=52443 #signet default -#port=38332 +#port=42332 # bootstrap.dat hashlist settings (linearize-hashes) max_height=313000 diff --git a/contrib/linearize/linearize-hashes.py b/contrib/linearize/linearize-hashes.py index ba40d2b6..174caf5d 100755 --- a/contrib/linearize/linearize-hashes.py +++ b/contrib/linearize/linearize-hashes.py @@ -120,7 +120,7 @@ def get_rpc_cookie(): if 'host' not in settings: settings['host'] = '127.0.0.1' if 'port' not in settings: - settings['port'] = 8332 + settings['port'] = 52332 if 'min_height' not in settings: settings['min_height'] = 0 if 'max_height' not in settings: diff --git a/doc/JSON-RPC-interface.md b/doc/JSON-RPC-interface.md index d7b3c3d6..3e2164ab 100644 --- a/doc/JSON-RPC-interface.md +++ b/doc/JSON-RPC-interface.md @@ -69,7 +69,7 @@ RPC interface will be abused. need to expose the RPC port to the host system. The default way to do this in Docker also exposes the port to the public Internet. Instead, expose it only on the host system's localhost, for example: - `-p 127.0.0.1:8332:8332` + `-p 127.0.0.1:52332:52332` - **Secure authentication:** By default, Devcoin Core generates unique login credentials each time it restarts and puts them into a file diff --git a/doc/REST-interface.md b/doc/REST-interface.md index be4e1957..2b8bebc3 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -3,8 +3,8 @@ 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, port 18332 for testnet, -port 38332 for signet, and port 18443 for regtest. +The interface runs on the same port as the JSON-RPC interface, by default port 52332 for mainnet, port 62332 for testnet, +port 42332 for signet, and port 52443 for regtest. REST Interface consistency guarantees ------------------------------------- @@ -83,7 +83,7 @@ https://github.com/devcoin/bips/blob/master/bip-0064.mediawiki Example: ``` -$ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp +$ curl localhost:62332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp { "chainHeight" : 325347, "chaintipHash" : "00000000fb01a7f3745a717f8caebee056c484e6e0bfe4a9591c235bb70506fb", @@ -117,4 +117,4 @@ Only supports JSON as output format. Risks ------------- -Running a web browser on the same node with a REST enabled devcoind can be a risk. Accessing prepared XSS websites could read out tx/block data of your node by placing links like `