rgb-cln/lightningd
Rusty Russell 71f736678f lightningd: make sure gossipd knows before we update blockheight.
Without this, we can get spurious failures from lnprototest, which
is waiting for lightningd to acknowledge the blockheight in getinfo:

```
2021-12-21T00:56:21.460Z DEBUG   lightningd: Adding block 109: 57a7bd3ade3a88a899e5b442075e9722ccec07e0205f9a913b304a3e2e038e26
2021-12-21T00:56:21.470Z DEBUG   lightningd: Adding block 110: 11a280eb76f588e92e20c39999be9d2baff016c3c6bac1837b649a270570b7dd
2021-12-21T00:56:21.479Z DEBUG   lightningd: Adding block 111: 02977fc9529b2ab4e0a805c4bc1bcfbff5a4e6577a8b31266341d22e204a1d27
2021-12-21T00:56:21.487Z DEBUG   lightningd: Adding block 112: 2402f31c5ddfc9e847e8bbfb7df084d29a5d5d936a4358c109f2f4cf9ea8d828
2021-12-21T00:56:21.496Z DEBUG   lightningd: Adding block 113: 5a561fe9423b4df33f004fc09985ee3ef38364d692a56a8b27ecbc6098a16d39
2021-12-21T00:56:21.505Z DEBUG   lightningd: Adding block 114: 4502f5ec23c89177872846848848322e8fa6c3fb6f5eb361194e4cd47596dfe9
2021-12-21T00:56:21.511Z DEBUG   02f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9-gossipd: Ignoring future channel_announcment for 109x1x0 (current block 108)
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-01-20 15:24:06 +10:30
..
test common: generalize extract_channel_id(). 2021-12-30 09:50:40 +10:30
.gitignore Ignore all the deamon inside the git history 2021-10-28 15:51:38 +02:00
Makefile gossipd: remove gossip_msg.[ch] 2021-12-06 10:05:39 +10:30
bitcoind.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
bitcoind.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
chaintopology.c balance-snaps: add a `balance_snapshot` event; fires after first catchup 2021-12-28 04:42:42 +10:30
chaintopology.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
channel.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
channel.h coin_mvt: log events for pushes/lease_fees for leased channels 2021-12-28 04:42:42 +10:30
channel_control.c channeld: add dev-disable-commit-after instead of dev-disconnect -nocommit 2021-12-30 09:50:40 +10:30
channel_control.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
channel_state.h channel-state: add two new states, for dualopend 2021-01-10 13:44:04 +01:00
closing_control.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
closing_control.h lightningd/closing_control.c: move json_close here from peer_control.c 2021-09-15 18:23:30 +02:00
coin_mvts.c common/coin_mvt: clean up API a little. 2021-12-30 14:36:55 +10:30
coin_mvts.h balance snap: first pass 2021-12-28 04:42:42 +10:30
connect_control.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
connect_control.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
datastore.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
dual_open_control.c coin_mvt: log events for pushes/lease_fees for leased channels 2021-12-28 04:42:42 +10:30
dual_open_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
gossip_control.c lightningd: make sure gossipd knows before we update blockheight. 2022-01-20 15:24:06 +10:30
gossip_control.h gossipd: get fed the blockheight from lightningd when we know it. 2019-09-25 04:01:56 +00:00
hsm_control.c lightningd: support hsm error code 2021-12-15 12:24:54 +10:30
hsm_control.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
htlc_end.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
htlc_end.h coin_mvt: record fees for an outbound htlc 2021-12-28 04:42:42 +10:30
htlc_set.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
htlc_set.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
invoice.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
invoice.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
io_loop_with_timers.c common: cleanup unsused parameter in timer_expired() 2021-12-14 09:33:10 +10:30
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
json.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
json.h common: hoist param_bitcoin_address where plugins can use it. 2020-08-11 08:39:24 +09:30
jsonrpc.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
jsonrpc.h lightningd: cleanup, freeing jsonrpc in shutdown cannot trigger db write's anymore 2021-11-30 13:34:44 +10:30
lightningd.c lightningd: make sure gossipd knows before we update blockheight. 2022-01-20 15:24:06 +10:30
lightningd.h lightningd: make sure gossipd knows before we update blockheight. 2022-01-20 15:24:06 +10:30
log.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
log.h log: don't leak log prefixes. 2021-11-27 10:38:13 +10:30
log_status.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
log_status.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
memdump.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
memdump.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
notification.c common/coin_mvt: make it clear we're using Lightning HRP not BIP 173. 2021-12-30 14:36:55 +10:30
notification.h balance snap: first pass 2021-12-28 04:42:42 +10:30
offer.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
onchain_control.c coin moves: turn 'tag' into 'tags' array, add OPENER tag 2021-12-28 04:42:42 +10:30
onchain_control.h onchaind: remove 'is_replay' logic 2021-12-28 04:42:42 +10:30
onion_message.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
onion_message.h common: remove support for pre v0.10.2 onionmessages. 2021-12-01 05:44:28 +10:30
opening_common.c lightningd: handle channel cleanups more explicitly. 2021-12-30 09:50:40 +10:30
opening_common.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
opening_control.c lightningd: handle channel cleanups more explicitly. 2021-12-30 09:50:40 +10:30
opening_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
options.c options: only allow one DNS announcement 2022-01-02 16:01:38 +01:00
options.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
pay.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
pay.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
peer_control.c lightningd: make sure gossipd knows before we update blockheight. 2022-01-20 15:24:06 +10:30
peer_control.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
peer_htlcs.c coin_mvt: record fees for an outbound htlc 2021-12-28 04:42:42 +10:30
peer_htlcs.h coin_mvt: record fees for an outbound htlc 2021-12-28 04:42:42 +10:30
ping.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin.c lightningd: cleanup obsolete plugins->shutdown flag 2021-12-14 09:33:10 +10:30
plugin.h lightningd: cleanup obsolete plugins->shutdown flag 2021-12-14 09:33:10 +10:30
plugin_control.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
plugin_control.h plugins: add `command` field to subcommand output. 2021-06-25 09:49:33 +09:30
plugin_hook.c plugins: simplify shutdown loop, simply close the db 2021-12-14 09:33:10 +10:30
plugin_hook.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
routehint.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
routehint.h invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
signmessage.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
subd.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
subd.h lightningd: handle channel cleanups more explicitly. 2021-12-30 09:50:40 +10:30
watch.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
watch.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00