core-lightning/lightningd
Rusty Russell 4aeebe88f2 log: fix ltmp crash.
When we clear and recreate ltmp, we attach it to whatever logbook it's on.
This, of course, is fraught, since it may be freed.

We could make it NULL-parented, but that makes YA special-case to free
when we exit (we try to keep valgrind happy by freeing everything).  So
since the first log_book is the permanent one attached to lightningd,
just keep that parent when we re-build it after use.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-20 12:58:13 +01:00
..
test lightningd: use tal_link for log_book. 2018-02-19 02:56:51 +00:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoind: trivial cleanups. 2018-02-01 03:12:43 +00:00
bitcoind.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
build_utxos.c wallet: Use newindex primitive to generate change key index 2018-01-08 17:19:25 +01:00
build_utxos.h build_utxos: fix weight calculation, and make more accurate. 2017-12-20 12:56:15 +01:00
chaintopology.c chaintopology: fix 100 block subtraction. 2018-02-16 13:07:12 +01:00
chaintopology.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
channel.c lightningd: rename peer_state -> channel_state, remove OPENINGD. 2018-02-19 02:56:51 +00:00
channel.h lightningd: rename peer_state -> channel_state, remove OPENINGD. 2018-02-19 02:56:51 +00:00
channel_state.h lightningd: rename peer_state -> channel_state, remove OPENINGD. 2018-02-19 02:56:51 +00:00
dev_ping.c lightningd: split struct peer into struct peer and struct channel. 2018-02-14 11:31:58 +01:00
gossip_control.c gossip: Fix up some comments on PR #955 2018-02-11 11:40:59 +01:00
gossip_control.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
gossip_msg.c tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
gossip_msg.h tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
hsm_control.c hsm: give it its own log, so it has unique prefix. 2018-02-07 00:46:49 +00:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c Rename (almost) all destructors to destroy_<type>. 2018-02-14 11:31:58 +01:00
htlc_end.h htlc: keep channel pointer, not peer pointer. 2018-02-14 11:31:58 +01:00
invoice.c invoice: Disable overlong description. 2018-02-19 02:42:11 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
jsonrpc.c jsonrpc: allow multiple commands in-flight from single JSON connection. 2018-02-16 17:51:04 +01:00
jsonrpc.h jsonrpc: allow multiple commands in-flight from single JSON connection. 2018-02-16 17:51:04 +01:00
jsonrpc_errors.h payalgo: Create a new failure for paying expired invoice. 2018-02-18 13:51:37 +01:00
lightningd.c Add option to specify pid file 2018-02-20 03:24:23 +00:00
lightningd.h Add option to specify pid file 2018-02-20 03:24:23 +00:00
log.c log: fix ltmp crash. 2018-02-20 12:58:13 +01:00
log.h subd: make functions more generic, don't assume 'struct channel'. 2018-02-19 02:56:51 +00:00
log_status.c status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
Makefile status: split off error messages into a new 'peer_status' type. 2018-02-19 02:56:51 +00:00
memdump.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
netaddress.c Fix a-vs-an typos 2018-02-08 22:49:34 +01:00
netaddress.h wireaddr: add ip[:port] parsing 2017-12-21 09:56:20 +00:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c Add option to specify pid file 2018-02-20 03:24:23 +00:00
options.h lightningd: --deprecated-api option to turn off deprecated APIs. 2018-01-19 22:23:45 +00:00
pay.c lightningd: fix crash when we get onchain after old db. 2018-02-20 01:38:32 +00:00
pay.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
payalgo.c Add assertions to clarify our assumptions about msg != NULL 2018-02-19 12:17:55 +01:00
payalgo.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
peer_control.c peer_control: Support xxx@yyy:zzz form for connecting. 2018-02-19 11:59:11 +01:00
peer_control.h lightningd: rename peer_state -> channel_state, remove OPENINGD. 2018-02-19 02:56:51 +00:00
peer_htlcs.c channel: now we're always complete, fields don't have to be optional. 2018-02-19 02:56:51 +00:00
peer_htlcs.h channel: now we're always complete, fields don't have to be optional. 2018-02-19 02:56:51 +00:00
subd.c peer_failed: hand fds back to master when we fail. 2018-02-19 02:56:51 +00:00
subd.h peer_failed: hand fds back to master when we fail. 2018-02-19 02:56:51 +00:00
txfilter.c txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
txfilter.h txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
watch.c lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
watch.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00