subd: record which ones connect to a peer.

This comes in useful for the next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-04-26 14:21:01 +09:30
parent b68fb24758
commit 1e282ecb7a
6 changed files with 27 additions and 16 deletions

View File

@@ -387,7 +387,7 @@ enum watch_result onchaind_funding_spent(struct channel *channel,
channel_set_owner(channel, new_channel_subd(ld,
"lightning_onchaind",
channel,
channel->log,
channel->log, false,
onchain_wire_type_name,
onchain_msg,
onchain_error,