core-lightning/gossipd
Rusty Russell 79e2c3f89a gossipd: don't crash if we're forced to discard corrupt gossip store.
When we're in remove_all_gossip, we *don't* call free_chan, but free it
manually.  This trips over the developer-mode check that we called free_chan!
Make it also insert the magic so that destroy_chan_check passes:

lightning_gossipd: gossipd/routing.c:496: destroy_chan_check: Assertion `chan->sat.satoshis == (u64)chan' failed.
lightning_gossipd: FATAL SIGNAL 6 (version v0.7.3rc2-2-gf89d7c1)
0x5632436a4544 send_backtrace
	common/daemon.c:41
0x5632436a45ea crashdump
	common/daemon.c:54
0x7f053c3c7f5f ???
	???:0
0x7f053c3c7ed7 ???
	???:0
0x7f053c3a9534 ???
	???:0
0x7f053c3a940e ???
	???:0
0x7f053c3b9011 ???
	???:0
0x563243698b9d destroy_chan_check
	gossipd/routing.c:496
0x5632436dca46 notify
	ccan/ccan/tal/tal.c:235
0x5632436dcf35 del_tree
	ccan/ccan/tal/tal.c:397
0x5632436dd2c1 tal_free
	ccan/ccan/tal/tal.c:481
0x56324369f004 remove_all_gossip
	gossipd/routing.c:2981
0x563243692f5d gossip_store_load
	gossipd/gossip_store.c:772
0x56324368eff4 gossip_init
	gossipd/gossipd.c:872
0x563243690cbb recv_req
	gossipd/gossipd.c:1580
0x5632436a4a69 handle_read
	common/daemon_conn.c:31
0x5632436cc7ae next_plan
	ccan/ccan/io/io.c:59
0x5632436cd32b do_plan
	ccan/ccan/io/io.c:407
0x5632436cd369 io_ready
	ccan/ccan/io/io.c:417
0x5632436cf52f io_loop
	ccan/ccan/io/poll.c:445
0x56324369102f main
	gossipd/gossipd.c:1700

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-10-17 23:40:05 +02:00
..
test gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_generation.c gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
gossip_generation.h gossipd: naming cleanups. 2019-09-20 06:55:00 +00:00
gossip_peerd_wire.csv gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
gossip_store.c seeker: start doing a channel probe if we see unknown node_announcement msgs. 2019-10-10 21:48:52 -05:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.h gossipd: have gossip_store_load() return a timestamp. 2019-10-10 21:48:52 -05:00
gossip_wire.csv elements: Move from a global is_elements to a global chainparams 2019-10-03 04:32:57 +00:00
gossipd.c gossipd: fix memleak when we getnodes has no nodes. 2019-10-14 18:58:44 -05:00
gossipd.h gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
Makefile gossipd: move gossip seeking routines into new file seeker.c 2019-10-10 21:48:52 -05:00
queries.c queries: make sure scids are in order. 2019-10-10 21:48:52 -05:00
queries.h gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
routing.c gossipd: don't crash if we're forced to discard corrupt gossip store. 2019-10-17 23:40:05 +02:00
routing.h seeker: start doing a channel probe if we see unknown node_announcement msgs. 2019-10-10 21:48:52 -05:00
seeker.c gossipd: fix stale scid query. 2019-10-15 18:05:54 +02:00
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00