cln/tests/data
Rusty Russell 1cc64dd67c pytest: test to crash on migration from old db.
```
Error executing statement: wallet/wallet.c:3247: INSERT INTO channel_htlcs ( id, channel_id, channel_htlc_id, direction, origin_htlc, msatoshi, cltv_expiry, payment_hash, payment_key, hstate, routing_onion, malformed_onion, partid, groupid, fees_msat, min_commit_num) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, ?, ?, ?, ?);: UNIQUE constraint failed: channel_htlcs.id
lightningd: FATAL SIGNAL 6 (version v25.02-321-g3999879)
0x642e42dc974f send_backtrace
	common/daemon.c:33
0x642e42dc97eb crashdump
	common/daemon.c:78
0x7d90f2e4532f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7d90f2e9eb2c __pthread_kill_implementation
	./nptl/pthread_kill.c:44
0x7d90f2e9eb2c __pthread_kill_internal
	./nptl/pthread_kill.c:78
0x7d90f2e9eb2c __GI___pthread_kill
	./nptl/pthread_kill.c:89
0x7d90f2e4527d __GI_raise
	../sysdeps/posix/raise.c:26
0x7d90f2e288fe __GI_abort
	./stdlib/abort.c:79
0x642e42d71f79 fatal_vfmt
	lightningd/log.c:1055
0x642e42da61e8 db_error
	wallet/db.c:1117
0x642e42e1eafc db_fatal
	db/utils.c:323
0x642e42e1eee6 db_exec_prepared_v2
	db/utils.c:197
0x642e42db1fd9 wallet_htlc_save_out
	wallet/wallet.c:3310
0x642e42d8f07f update_out_htlc
	lightningd/peer_htlcs.c:1978
0x642e42d8f435 changed_htlc
	lightningd/peer_htlcs.c:2011
0x642e42d929aa peer_sending_commitsig
	lightningd/peer_htlcs.c:2108
0x642e42d5002f channel_msg
	lightningd/channel_control.c:1533
0x642e42d9ec3a sd_msg_read
	lightningd/subd.c:560
0x642e42e88435 next_plan
	ccan/ccan/io/io.c:60
0x642e42e88906 do_plan
	ccan/ccan/io/io.c:422
0x642e42e889c3 io_ready
	ccan/ccan/io/io.c:439
0x642e42e8a332 io_loop
	ccan/ccan/io/poll.c:455
0x642e42d69b01 io_loop_with_timers
	lightningd/io_loop_with_timers.c:22
0x642e42d6f525 main
	lightningd/lightningd.c:1486
0x7d90f2e2a1c9 __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7d90f2e2a28a __libc_start_main_impl
	../csu/libc-start.c:360
0x642e42d41b64 ???
	???:0
0xffffffffffffffff ???
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-05-17 13:05:04 -05:00
..
recklessrepo tests: Reckless test fix for project must contain name 2025-01-09 11:15:05 +01:00
bookkeeper-accounts-pre-v24.08-migration.sqlite3.xz bookkeeper: fix up out-of-order migrations in rc1 2024-08-16 07:18:29 +09:30
channel_htlcs-pre-pagination.sqlite3.xz pytest: test to crash on migration from old db. 2025-05-17 13:05:04 -05:00
commando_blacklist.sqlite3.xz lightningd: migrate (and delete) old commando blacklists. 2023-07-25 14:47:12 +09:30
commando_listrunes.sqlite3.xz lightningd: migrate (and delete) old commando runes. 2023-07-25 14:47:12 +09:30
dangling-peer.sqlite3.xz pytest: test starting with db corrupted by dangling peer. 2019-02-21 12:03:54 +01:00
dupe_lease_fee.sqlite3.xz bkpr: migration to delete any duplicate lease_fee entries 2022-09-14 15:59:37 +09:30
gossip-store-2024-09-22-node-map.xz tests/data: add compressd canned gossip from mainnet. 2024-10-04 08:47:53 +09:30
gossip-store-2024-09-22.compressed tests/data: add compressd canned gossip from mainnet. 2024-10-04 08:47:53 +09:30
invoices_botched_waitindex_migrate.sqlite3.xz pytest: test for grubles' screwed node. 2023-07-31 13:25:22 +09:30
invoices_pre_waitindex.sqlite3.xz pytest: add test for db crash on conflicting invoice.id 2023-07-27 15:54:08 +09:30
l1-missed-p2wpkh-CLOSINGD_COMPLETE.sqlite3.xz pytest: generate broken db examples now, before we fix them. 2025-04-02 11:22:54 +10:30
l2-missed-p2wpkh-CLOSED.sqlite3.xz pytest: generate broken db examples now, before we fix them. 2025-04-02 11:22:54 +10:30
last_tx_closed.sqlite3.xz migrations: ignore channels that don't have a peer_id 2020-06-17 14:30:41 +02:00
last_tx_upgrade.sqlite3.xz psbt: affirm database upgrade works for last_tx -> psbt 2020-06-11 13:13:13 +02:00
no-local-basepoints.sqlite3.xz pytest: fix spurious failure in test_local_basepoints_cache. 2021-04-12 23:03:47 +02:00
oldstyle-scids.sqlite3.xz pytest: test db upgrade. 2019-09-06 14:19:14 +02:00
p2sh_wallet_hsm_secret upgradewallet: JSONRPC call to update p2sh outputs to a native segwit 2023-02-04 15:31:16 +10:30
pubkey_regen.sqlite.xz hsmd/db: backfill pubkey information so that psbts signing works 2020-07-29 13:13:46 +02:00
pubkey_regen_commitment_point.sqlite3.xz hsmd/db: backfill pubkey information so that psbts signing works 2020-07-29 13:13:46 +02:00
routing_gossip_store common: add routing test using real data which crashes. 2024-03-07 14:09:14 +01:00
runes_bad_id.sqlite3.xz db: migrate old runes table to fix up id fields. 2023-08-31 05:33:15 +09:30
upgrade_inflight.sqlite3.xz inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
v0.12.1-forward.sqlite3.xz pytest: add test for migrations upgrade which breaks 'fees_collected_msat'. 2022-09-27 14:42:03 +09:30