core-lightning/gossipd
Rusty Russell c95b4eedf4 gossipd: fail clearly if we can't open/create gossip_store.
Otherwise we fail at the write, and then it's not clear
*why* we couldn't open file:

lightning_gossipd: Writing version to store: Bad file descriptor (version v0.7.1-16-g7ea5c5c)
0x560dcf1a3779 send_backtrace common/daemon.c:40
0x560dcf1a634d status_failed common/status.c:192
0x560dcf19726a gossip_store_new gossipd/gossip_store.c:195
0x560dcf199fd0 new_routing_state gossipd/routing.c:177
0x560dcf1a098b gossip_init gossipd/gossipd.c:2113
0x560dcf1a197a recv_req gossipd/gossipd.c:2946
0x560dcf1a38cd handle_read common/daemon_conn.c:31
0x560dcf1bae2c next_plan ccan/ccan/io/io.c:59
0x560dcf1bb314 do_plan ccan/ccan/io/io.c:407
0x560dcf1bb341 io_ready ccan/ccan/io/io.c:417
0x560dcf1bcb13 io_loop ccan/ccan/io/poll.c:445
0x560dcf1a1ba0 main gossipd/gossipd.c:3073

Reported-by: @JavierRSobrino
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-07-04 16:10:20 +02:00
..
test makefiles: move all unit tests under make check-units 2019-06-30 16:41:30 +09:30
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_constants.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
gossip_peerd_wire.csv gossipd: don't send gossip stream, let per-peer daemons read it themselves. 2019-06-04 01:29:39 +00:00
gossip_store.c gossipd: fail clearly if we can't open/create gossip_store. 2019-07-04 16:10:20 +02:00
gossip_store.csv gossipd: erase old entries from the store, don't just append. 2019-06-04 01:29:39 +00:00
gossip_store.h gossipd: note if loaded store seems reasonably up-to-date. 2019-06-12 00:37:46 +00:00
gossip_wire.csv gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
gossipd.c gossipd: be more verbose and less assert()ive on bad node_announcement. 2019-06-21 22:03:35 +00:00
Makefile gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
routing.c gossipd: remove gossip entirely if we hit a problem on load. 2019-06-21 22:03:35 +00:00
routing.h gossipd: remove gossip entirely if we hit a problem on load. 2019-06-21 22:03:35 +00:00