rgb-cln/wallet
Dusty Daemon c67f1f92a8
splice: prevent splice going to onchaind & race prevention
Don’t send the funding spend to onchaind if we detect it in inflights (aka. a splice). While we already prevented onchaind_funding_spent from being called directly, the call to wallet_channeltxs_add meant onchaind_funding_spent would be called *anyway* on restart. This is now fixed.

Additionally there was a potential for a race problem depending on the firing order of the channel depth and and funding spent events.

Instead of requiring these events fire in a specific order, we make a special “memory only” inflight object to prevent the race regardless of firing order.

Changelog-Fixed: Splice: bugfix for restart related race condition interacting with adversarial close detection.
2023-08-16 12:28:53 +09:30
..
test renepay: make pay_plugin a tal object. 2023-08-12 09:41:24 +09:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
Makefile wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
db.c channeld: Code to implement splicing 2023-07-31 21:00:22 +09:30
db.h lightningd: migrate (and delete) old commando runes. 2023-07-25 14:47:12 +09:30
invoices.c lightningd: fix crash on startup expirations. 2023-07-31 20:42:31 +09:30
invoices.h lightningd: fix crash on startup expirations. 2023-07-31 20:42:31 +09:30
psbt_fixup.c wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
psbt_fixup.h wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
reservation.c Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
txfilter.c txfilter_add_derkey: track p2tr scripts 2023-07-11 11:41:15 +09:30
txfilter.h txfilter_add_derkey: track p2tr scripts 2023-07-11 11:41:15 +09:30
wallet.c splice: prevent splice going to onchaind & race prevention 2023-08-16 12:28:53 +09:30
wallet.h channeld: Code to implement splicing 2023-07-31 21:00:22 +09:30
walletrpc.c Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
walletrpc.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30