Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: set regtest JSON-RPC port to 18443 to avoid conflict with testnet 18332 #10825

Merged
merged 1 commit into from Sep 5, 2017

Conversation

fametrano
Copy link
Contributor

@fametrano fametrano commented Jul 14, 2017

using the same JSON-RPC default port for both testnet and regtest prevents running both at the same time on the same machine. Since RPCport=P2Pport-1 for both mainnet and testnet, and regtest P2Pport being 18444, 18443 is proposed for regtest RPCport

Documentation has been updated (or created where missing); manpages doc/man/bitcoin*.1 could include information for regtest too

@fametrano fametrano changed the title Net set regtest JSON-RPC port to 18443 to avoid conflict with testnet 18332 NET: set regtest JSON-RPC port to 18443 to avoid conflict with testnet 18332 Jul 14, 2017
@fanquake fanquake added the P2P label Jul 15, 2017
@laanwj laanwj added the Tests label Jul 17, 2017
@laanwj
Copy link
Member

laanwj commented Jul 17, 2017

Concept ACK. I never understood why testnet and regtest should overlap resources.

@sipa
Copy link
Member

sipa commented Jul 25, 2017

Concept ACK

@TheBlueMatt
Copy link
Contributor

Dont think its worth updating tor.md (as regtest nodes shouldn't really be connecting to each other/exposed publicly), but otherwise looks good!

@maflcko
Copy link
Member

maflcko commented Jul 27, 2017

After fixing the nit, please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits

@fametrano
Copy link
Contributor Author

removed tor.md change, squashed the rest

@laanwj
Copy link
Member

laanwj commented Sep 5, 2017

utACK ce3baa1

@laanwj laanwj changed the title NET: set regtest JSON-RPC port to 18443 to avoid conflict with testnet 18332 net: set regtest JSON-RPC port to 18443 to avoid conflict with testnet 18332 Sep 5, 2017
@laanwj laanwj merged commit ce3baa1 into bitcoin:master Sep 5, 2017
laanwj added a commit that referenced this pull request Sep 5, 2017
…ct with testnet 18332

ce3baa1 changed regtest RPCport to 18443 to avoid conflict with testnet 18332 (Ferdinando M. Ametrano)

Pull request description:

  using the same JSON-RPC default port for both testnet and regtest prevents running both at the same time on the same machine. Since RPCport=P2Pport-1 for both mainnet and testnet, and regtest P2Pport being 18444, 18443 is proposed for regtest RPCport

  Documentation has been updated (or created where missing); manpages doc/man/bitcoin*.1 could include information for regtest too

Tree-SHA512: d42185f7ef54dc918ece19b543c8681d08bb9c5a971394e21f2d9a1091734b091b08df69fab622c207b46f402cf9323ded5b7a33fbd0af722388930169124e7f
ariard pushed a commit to ariard/bitcoin that referenced this pull request Aug 23, 2018
…ions

Add checkmempool and checkblockindex regtest true in doc
laanwj added a commit that referenced this pull request Sep 4, 2018
…ts reattributions

e8c4a1e Add new regtest ports in doc following #10825 ports reattributions (Antoine Riard)

Pull request description:

  Following #10825, regtest ports for p2p connections and JSON-RPC connections have been remapped from 18333 and 18332 to 18444 and 18443. This change is not documented in the wiki or nowhere else and it's puzzling to guess why your regtest JSON-rpc connections all failed even if you're following the docs.

Tree-SHA512: e2a1b9b4059060d9ed0900c1554e124ed69ae3e4648474880795128e77c7324d68aba52e4acda2f47390a9c3d36629b777e3b8c0eb10f0e08a2b120c4119dff3
jfhk pushed a commit to jfhk/bitcoin that referenced this pull request Nov 14, 2018
…ions

Add checkmempool and checkblockindex regtest true in doc
HashUnlimited pushed a commit to HashUnlimited/chaincoin that referenced this pull request Nov 26, 2018
…ions

Add checkmempool and checkblockindex regtest true in doc
kallewoof pushed a commit to kallewoof/bitcoin that referenced this pull request Oct 4, 2019
634e395 MERGE FIX: Prevent mainnet unit tests from thinking they have signed blocks after custom tests (Gregory Sanders)
c42c823 MERGE FIX: Pegin witness test cleanup (Gregory Sanders)
6c1c652 MERGE FIX: move pegin witness test to beginning to maybe avoid dirtying other tests (Gregory Sanders)
a36ee6c MERGE FIX: Augment IsValidPeginWitness with err string return (Gregory Sanders)
9d9ee3d MERGE FIX: Adapt bitcoin_functional sync to regtest2 (Gregory Sanders)
7c97d6a MERGE FIX: sync up bitcoin_functional (Gregory Sanders)
9494052 MERGE FIX: enable parent chain in fedpeg-based unit tests (Gregory Sanders)
c73e564 MERGE FIX: instantiate consensus.has_parent_chain for all chains (Gregory Sanders)
4f4fe8f MERGE FIX: ConnectTip: ub fix for bench (Gregory Sanders)
80857b3 MERGE FIX: TEST: fixup bitcoin functional (Gregory Sanders)
e0a8aba MERGE FIX: Properly parse sendtomainchain args from -cli (Gregory Sanders)
4202671 MERGE FIX: spelling linter fixes (Gregory Sanders)
0179972 MERGE FIX: fixup travis bitcoin_functional run (Gregory Sanders)
90f7d18 MERGE-FIX: functional tests (Gregory Sanders)
51584e7 MERGE-FIX: various compilation fixes (Gregory Sanders)
d641c29 travis: Run feature_dbcrash functional tests in cron job (Chun Kuan Lee)
c0d947d tests: Reorder tests and move most of extended tests up to normal tests (Chun Kuan Lee)
cccc362 build: Remove libssl from LDADD unless gui (MarcoFalke)
8e1c13e doc: Document -checklevel levels (Wladimir J. van der Laan)
c1dde3a No longer shutdown after encrypting the wallet (Andrew Chow)
d7637c5 After encrypting the wallet, reload the database environment (Andrew Chow)
5d296ac Add function to close all Db's and reload the databae environment (Andrew Chow)
a769461 Move BerkeleyEnvironment deletion from internal method to callsite (Andrew Chow)
9dcb676 [qa] Use correct python index slices in example test (Suhas Daftuar)
fa8433e qa: Remove unneded import_deterministic_coinbase_privkeys overwrite, add comments (MarcoFalke)
e413c2d qa: Fix codespell error and have lint-spelling error instead of warn (MarcoFalke)
14b29a7 Fix reference to lint-locale-dependence.sh (Hennadii Stepanov)
e221368 utils: Convert fs error messages from multibyte to utf-8 (Chun Kuan Lee)
e4ef4b4 [build] remove #ifdef ENABLE_WALLET from interfaces/node (John Newbery)
fa6ab8a rpc: Return more specific reject reason for submitblock (MarcoFalke)
b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa)
b6a2533 Remove redundant BIP174 test from rpc_psbt.json (araspitzu)
fac9539 qa: Run all tests even if wallet is not compiled (MarcoFalke)
faa669c qa: Premine to deterministic address with -disablewallet (MarcoFalke)
d38bf91 Call unicode API on Windows (Chun Kuan Lee)
d0b1cee doc: `-help-debug` implies `-help` (Wladimir J. van der Laan)
9a565a8 Pass export privkey DER compression flag correctly (liuyujun)
fae3fbd logging: Replace LogPrint macros with regular functions (MarcoFalke)
e0664f7 build: Move interfaces/* to libbitcoin_server (Wladimir J. van der Laan)
23db954 utils: run commands using utf-8 string on Windows (Chun Kuan Lee)
7d038dc [build] remove ENABLE_WALLET ifdef from httprpc.cpp (John Newbery)
3076556 [build] Move dummy wallet into its own .cpp file. (John Newbery)
bb6ca65 gui: get special folder in unicode (Chun Kuan Lee)
1c5d225 Drop boost::scoped_array (Chun Kuan Lee)
e7a7245 Scripts and tools: increased timeout downloading (Emanuele Cisbani)
a679109 Speed up knapsack_solver_test by not recreating wallet 100 times. (lucash.dev@gmail.com)
893628b Drop minor GetSerializeSize template (Ben Woosley)
da74db0 Drop unused GetType() from CSizeComputer (Ben Woosley)
b9babc8 utils: Use _wfopen and _wreopen on Windows (Chun Kuan Lee)
fa7e969 qt: Also log and print messages or questions like bitcoind (MarcoFalke)
dd031e3 noui: Move handlers to header file (MarcoFalke)
fa263bc qa: Fix silent merge conflict in wallet_importmulti (MarcoFalke)
98ea64c Let wallet importmulti RPC accept labels for standard scriptPubKeys (Russell Yanofsky)
faa1a74 tx pool: Use class methods to hide raw map iterator impl details (MarcoFalke)
d9d7957 Preserve a format of RPC command definitions (Kostiantyn Stepaniuk)
9256f7d build: avoid getifaddrs when unavailable (Cory Fields)
fa462b3 wallet: Set encrypted_batch to nullptr after delete. Avoid double free in the case of NDEBUG. (practicalswift)
faea5bf doc: release notes for -enablebip61 default change (MarcoFalke)
fa14b54 p2p: Disable BIP 61 by default (MarcoFalke)
7177e09 depends: Remove unused Qt 4 dependencies (Chun Kuan Lee)
dc287c9 Squashed 'src/univalue/' changes from 51d3ab3..7890db9 (MarcoFalke)
946107a Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file exists. (Alexander Leishman)
bc8aa2b don't translate command line options (Michael Polzer)
fac3e22 qa: Read reject reasons from debug log, not p2p messages (MarcoFalke)
b2f49bd Integration of property based testing into Bitcoin Core (Chris Stewart)
65a449f Explain when reindex-chainstate can be used instead of reindex (Sjors Provoost)
e351a16 Remove reference to deprecated RPC call in build instructions (Michael Goldstein)
a6f16f1 Docs: Add disable-wallet section to OSX build instructions (Michael Goldstein)
f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery)
90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery)
df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery)
fab5267 doxygen: Remove misleading checkpoints comment in CMainParams (MarcoFalke)
2b5d6f8 Replace duplcate reference with reference to reference doc (Pieter Wuille)
89709db Adjust TODO link (Pieter Wuille)
9254ffc Add descriptor reference documentation (Pieter Wuille)
ed2332a test: Add test for config file parsing errors (MarcoFalke)
a66c0f7 util: Report parse errors in configuration file (Wladimir J. van der Laan)
f8a81f7 lint: Add spell check linter (codespell) (practicalswift)
ada3562 Fix typos reported by codespell (practicalswift)
e9a78e9 doc: Change documentation for =0 for non-boolean options (Wladimir J. van der Laan)
341f7c7 macOS fix: Check for correct version of flake8 to avoid spurious warnings. The brew installed flake8 version is Python 2 based and does not work. (practicalswift)
908a559 macOS fix: Add excludes for checks added in the newer shellcheck version installed by brew (practicalswift)
ec4d57b macOS fix: Work around empty (sub)expression error when using BSD grep (practicalswift)
b57d7d9 macOS fix: Avoid mapfile due to ancient version of bash shipped with macOS (practicalswift)
e4a79b4 appveyor: Use clcache to speed up build (Chun Kuan Lee)
f34c8c4 Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. (practicalswift)
ee3a494 gui: Favor macOS show / hide action in dock menu (João Barbosa)
e8c4a1e Add new regtest ports in doc following bitcoin#10825 ports reattributions (Antoine Riard)
8ecaee1 Increase signal to noise in appveyor build output by reducing the MSVC warning count from 12 to 4 (12 is assuming the changes in bitcoin#14086 are also implemented). (practicalswift)
5d62dcf lint: Make sure we read the command line inputs using utf-8 decoding in python (Chun Kuan Lee)
c7f7fa4 Trivial: update clang thread-safety docs url (Ben Woosley)
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)
83d5305 Switch nPrevNodeCount to vNodesSize. (Patrick Strateman)
fb97437 added note that control port must be enabled and how to do that in torrc config file (Jordan Baczuk)
8dfc2f3 Test rpc_help.py failed: Check whether ZMQ is enabled or not. (Kvaciral)
190bf62 scripted-diff: Small locking rename (Russell Yanofsky)
9c4dc59 Use LOCK macros for non-recursive locks (Russell Yanofsky)
1382913 Make LOCK, LOCK2, TRY_LOCK work with CWaitableCriticalSection (Russell Yanofsky)
ba1f095 MOVEONLY Move AnnotatedMixin declaration (Russell Yanofsky)
41b88e9 Add unit test for DEBUG_LOCKORDER code (Russell Yanofsky)
62b6f0f Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins (Russell Yanofsky)
545e85e Add AssertLockHeld assertions in CWallet::ListCoins (Russell Yanofsky)
ca1a093 Add regression test: Don't assert(...) with side effects (practicalswift)
4c3c9c3 Don't assert(...) with side effects (practicalswift)
b602c9b tests: Add missing locking annotations and locks (practicalswift)
f055995 blockfilter: Omit empty scripts from filter contents. (Jim Posen)
75ea00f Remove unused fsbridge::freopen (practicalswift)
cceedbc Don't close old debug log file handle prematurely when trying to re-open (on SIGHUP) (practicalswift)
fa782a3 qa: Use named args in some tests (MarcoFalke)
b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke)
749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke)
8550f1f Add README.md to linux release tarballs (Hennadii Stepanov)
c516c3a [contrib] Support ARM and RISC-V symbol check (Chun Kuan Lee)
c9c32e6 [wallet] Kill accounts (John Newbery)
1e29379 Fix potential deadlock (practicalswift)
d58dc9f Add lock annotations (cs_args) (practicalswift)
db5e9d3 Add missing locks (cs_args) (practicalswift)
0e534d4 Fix incorrect Doxygen comments (practicalswift)
fa309dc validation: Log FormatStateMessage on ConnectBlock error in ConnectTip (MarcoFalke)
fa58777 scripted-diff: Remove unused first argument to addUnchecked (MarcoFalke)
fe5c497 tx pool: Use the entry's hash instead of the one passed to addUnchecked (MarcoFalke)
ddd395f Mark CTxMemPoolEntry members that should not be modified const (MarcoFalke)
6af6d9b test: Add tests for RPC help (João Barbosa)
1d9aa00 Explicitly initialize prevector _union (Ben Woosley)
b193d5a Removes the Boost case_conv.hpp dependency. (251)
7a208d9 Implements custom tolower and toupper functions. (251)
e2ba043 Implements ParseNetwork unit test. (251)
1661a47 add unicode compatible file_lock for Windows (Chun Kuan Lee)
1cc5897 tests: Fix accidental trunction from int to bool (practicalswift)
61fe653 fix walletcreatefundedpsbt deriv paths, add test (Gregory Sanders)
fae0400 qa: Add some actual witness in rpc_rawtransaction (MarcoFalke)
917353c Make SignPSBTInput operate on a private SignatureData object (Pieter Wuille)
cad5dd2 Pass HD path data through SignatureData (Pieter Wuille)
03a9958 Implement key origin lookup in CWallet (Pieter Wuille)
3b01efa [MOVEONLY] Move ParseHDKeypath to utilstrencodings (Pieter Wuille)
81e1dd5 Generalize PublicOnlySigningProvider into HidingSigningProvider (Pieter Wuille)
84f1f1b Make SigningProvider expose key origin information (Pieter Wuille)
611ab30 Introduce KeyOriginInfo for fingerprint + path (Pieter Wuille)
16e288a test padding non micro timestamps (John Newbery)
995dd89 [Tests] Make combine_logs.py handle multi-line logs (John Newbery)
4c530e0 travis: add  CXXFLAGS=-Wnopsabi at ARM job (Chun Kuan Lee)
dd777f3 Remove unused variable (practicalswift)
cdf4089 Remove redundant assignments (dead stores) (practicalswift)
1ac3c98 Mark single-argument constructors "explicit" (practicalswift)
bb08423 [doc] Add release notes for 'account' API removal (John Newbery)
1f4b865 [wallet] Re-sort wallet RPC commands (John Newbery)
f0dc850 [wallet] Remove wallet account RPCs (John Newbery)
c410f41 [tests] Remove wallet accounts test (John Newbery)
c55c5f2 fix missing differentiation between UNIT and FUNCTIONAL tests in travis build (Julian Fleischer)
4143269 use export LC_ALL=C.UTF-8 (Julian Fleischer)
728c82d make script exit if a command fails (Julian Fleischer)
506890b move remaining travis build steps into individual files (Julian Fleischer)
272306e number .travis/ script according to build lifecycle and add README to explain (Julian Fleischer)
519e273 move lint stage up to resemble travis build ui (Julian Fleischer)
86d34f0 abort script in END_FOLD on non-zero exit code (Julian Fleischer)
4f2f88c move script sections info individual files and comply with shellcheck (Julian Fleischer)
a9910d8 contrib: Adjust output to current test format (Akio Nakamura)
5778bf9 Report minfeefilter value in getpeerinfo rpc (Anthony Towns)
3842732 test: Add testing of value_ret for SelectCoinsBnB (Ben Woosley)
497e90c Remove default argument to prevector constructor to remove ambiguity (Ben Woosley)
f1640d0 Make IS_TRIVIALLY_CONSTRUCTIBLE consistent on GCC < 5 (Ben Woosley)
fad8afa travis: Run unit tests --with-sanitizers=undefined (MarcoFalke)
0d00fd5 depends: allow CC/CXX to be overridden during configure (Cory Fields)
7d0a8ad Docs: Fix help message typo optiona -> optional (Ben Woosley)
faf4a9b qa: Stop txindex thread before calling destructor (MarcoFalke)
0b16f67 auto generate MSVC project files (Chun Kuan Lee)
254c85b bench: Benchmark GCS filter creation and matching. (Jim Posen)
f33b717 blockfilter: Optimization on compilers with int128 support. (Jim Posen)
97b64d6 blockfilter: Unit test against BIP 158 test vectors. (Jim Posen)
a4afb9c blockfilter: Additional helper methods to compute hash and header. (Jim Posen)
cd09c79 blockfilter: Serialization methods on BlockFilter. (Jim Posen)
c1855f6 blockfilter: Construction of basic block filters. (Jim Posen)
53e7874 blockfilter: Simple test for GCSFilter construction and Match. (Jim Posen)
558c536 blockfilter: Implement GCSFilter Match methods. (Jim Posen)
cf70b55 blockfilter: Implement GCSFilter constructors. (Jim Posen)
c454f0a blockfilter: Declare GCSFilter class for BIP 158 impl. (Jim Posen)
9b622dc streams: Unit tests for BitStreamReader and BitStreamWriter. (Jim Posen)
fe943f9 streams: Implement BitStreamReader/Writer classes. (Jim Posen)
87f2d9e streams: Unit test for VectorReader class. (Jim Posen)
947133d streams: Create VectorReader stream interface for vectors. (Jim Posen)
737670c Use assert when running from multithreaded code as BOOST_CHECK_* are not thread safe (Jesse Cohen)
9e2de6b Move cs_main locking annotations from .cpp to .h (practicalswift)
9e0a514 Add compile time checking for all cs_main runtime locking assertions (practicalswift)
870bd4c Update functional RBF test to check replaceable flag (dexX7)
820d31f Add "bip125-replaceable" flag to mempool RPCs (dexX7)
03a2d68 Tests: add usage note to check-rpc-mappings.py (Mason Simon)
ddddce0 util: Replace boost::signals2 with std::function (MarcoFalke)
fa6c3de p2p: Clarify control flow in ProcessMessage() (MarcoFalke)
984d72e Return the script type from Solver (Ben Woosley)
23f4343 Add CMerkleTx::IsImmatureCoinBase method (Ben Woosley)
fa3e9f7 qa: Add TestNode::assert_debug_log (MarcoFalke)
00f58f8 rpc: Avoid locking cs_main in some wallet RPC (João Barbosa)
fa74d3d qa: Remove unused deserialization code in msg_version (MarcoFalke)
fa5099c p2p: Remove dead code for nVersion=10300 (MarcoFalke)
8563341 Bugfix: NSIS: Exclude Makefile* from docs (Luke Dashjr)
46f8345 contrib: Support github pull request gitian-build (Chun Kuan Lee)
317f2cb test: Check RPC settxfee errors (João Barbosa)
48618da Add checks for settxfee reasonableness (Anthony Towns)
321159e don't report minversion wallet entry as unknown (Gregory Sanders)
19efc01 Add PSBT documentation (Pieter Wuille)
18c49eb http: Add const modifier to HTTPRequest methods (João Barbosa)
3567b24 test: Add lint to prevent SIGNAL/SLOT connect style (João Barbosa)
f78558f qt: Use new Qt5 connect syntax (João Barbosa)

Pull request description:

Tree-SHA512: 6da8dacc63f7ca6f28ed6aa0143cc65383d9ac17fcad26c17b683397701ba170b3987fa0f246ef8408766975d7b80b62c5ff8a20cfcb78ce54d65b8a620e9e91
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Sep 8, 2021
…coin#10825 ports reattributions

e8c4a1e Add new regtest ports in doc following bitcoin#10825 ports reattributions (Antoine Riard)

Pull request description:

  Following bitcoin#10825, regtest ports for p2p connections and JSON-RPC connections have been remapped from 18333 and 18332 to 18444 and 18443. This change is not documented in the wiki or nowhere else and it's puzzling to guess why your regtest JSON-rpc connections all failed even if you're following the docs.

Tree-SHA512: e2a1b9b4059060d9ed0900c1554e124ed69ae3e4648474880795128e77c7324d68aba52e4acda2f47390a9c3d36629b777e3b8c0eb10f0e08a2b120c4119dff3
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants