core-lightning/tests
Jan Sarenik 96f28323bd Set default port according to network
The idea is to have different default ports for different networks.

Current default port is `9735` for everything. Let's use it for
the mainnet and reuse the difference added to the default port
from `rpc_port` values in `bitcoin/chainstate.c`.

Testnet would be `19735` (adding rpc_port - 8332 = `10000`).

Signet would be `39735` (adding rpc_port - 8332 = `30000`).

Regtest would be `19846` (adding rpc_port - 8332 = `10111`).

With Vincenzo's kind pair-programming help over tmate.

Two other commits were squashed into this one so that bisecting
never ends up in half-baked state:

1. chainparams: Fix regtest default rpc_port

   bitcoind -help says this:

    -rpcport=<port>
         Listen for JSON-RPC connections on <port> (default: 8332, testnet:
         18332, signet: 38332, regtest: 18443)

2. test_gossip: Default port for regtest

   hex: 2607 is now .... (could be 4d86 but Elements uses another port)
   dec: 9735 is now any port (could be 19846 ^^ but now is for any port)

   The lines which were binding to default port were removed as the
   default port is different on each network.

NOTE: Remember not to modify gossip_store tests which loads everything raw
      including the checksums.

Changelog-Changed: If the port is unspecified, the default port is chosen according to used network similarly to Bitcoin Core.
2021-12-06 17:10:08 +10:30
..
data inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
fuzz check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
plugins check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
vectors pytest: Add tests for the sphinx onion generation and processing 2020-03-12 10:25:01 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py pytest: don't copy db to query it. 2021-08-26 12:44:02 +09:30
fixtures.py pytest: add schema support for JSON responses. 2021-05-27 20:28:49 +09:30
test_closing.py testing: fix test_closing_higherfee 2021-11-30 13:34:44 +10:30
test_connection.py options: fix handling of wildcard (allproto) address. 2021-12-05 16:43:09 +01:00
test_db.py wallet/db_sqlite3.c: Support direct replication of SQLITE3 backends. 2021-11-17 12:10:07 +10:30
test_gossip.py Set default port according to network 2021-12-06 17:10:08 +10:30
test_invoices.py Makefile: update spec version 2021-09-09 12:04:48 +09:30
test_misc.py common: remove support for pre v0.10.2 onionmessages. 2021-12-01 05:44:28 +10:30
test_onion.py pytest: Actually make sure that the direcory exists 2020-03-24 09:52:33 +10:30
test_opening.py On Mac OS X a different error is raised on failed connection 2021-10-10 13:22:29 +02:00
test_pay.py tests: add pay test for exclude arg 2021-12-04 21:37:42 +10:30
test_plugin.py tests: add pay test for exclude arg 2021-12-04 21:37:42 +10:30
test_wallet.py pytest: ensure hsmtool tests do complete writes. 2021-09-21 20:19:03 +09:30
utils.py features: EXPERIMENTAL_FEATURES: advertize option_quiesce 2021-10-08 16:07:21 +02:00