core-lightning/tests
Rusty Russell e96eb07ef4 lightningd: test that hsm_secret is as expected, at startup.
If you get the wrong hsm_secret, your node_id will change, and
peers won't know who you are, bitcoind will reject your transaction
signatures, and other madness.

Catch this as soon as it happens, by storing our node_id in the db.

Suggested-by: @cdecker, @fiatjaf
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: Config: `lightningd` will refuse to start with the wrong node_id (i.e. hsm_secret changes).
2022-07-20 19:28:33 +09: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 Makefile: use a library archive for CCAN 2022-07-17 08:51:02 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +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: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30
test_cln_rs.py lightningd: change msatoshi args to amount_msat. 2022-06-21 06:52:35 +09:30
test_closing.py pytest: fix flake in test_channel_lease_post_expiry 2022-07-18 20:50:04 -05:00
test_connection.py pytest: work around dualopend issue. 2022-07-18 20:50:04 -05:00
test_db.py lightningd: test that hsm_secret is as expected, at startup. 2022-07-20 19:28:33 +09:30
test_gossip.py pytest: don't assume disconnect finished atomically, and suppress interfering redirects. 2022-07-18 20:50:04 -05:00
test_invoices.py plugin: autoclean fix double free when re-enable, remove xfail mark from test_ 2022-07-16 14:19:05 +09:30
test_misc.py test: disable schema check of checkmessage with deprecated API 2022-07-19 17:55:31 +02:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py lightningd: drive all reconnections out of disconnections. 2022-07-18 20:50:04 -05:00
test_pay.py sendpay: allow route to contain both amount_msat and (deprecated) msatoshi. 2022-07-12 12:42:05 -05:00
test_plugin.py lightningd: don't explicitly tell connectd to disconnect, have it do it on sending error/warning. 2022-07-18 20:50:04 -05:00
test_wallet.py lightningd: test that hsm_secret is as expected, at startup. 2022-07-20 19:28:33 +09:30
utils.py bolt: Reflect the zeroconf featurebits in code 2022-07-04 22:14:06 +02:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30