common/per_per_state: generalize lightningd/peer_comm Part 1

Encapsulating the peer state was a win for lightningd; not surprisingly,
it's even more of a win for the other daemons, especially as we want
to add a little gossip information.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-06-04 03:41:25 +09:30
parent f1b4b14be5
commit 38d2899fbb
45 changed files with 490 additions and 436 deletions

View File

@@ -7,10 +7,10 @@
struct channel;
struct crypto_state;
struct lightningd;
struct peer_comms;
struct per_peer_state;
void peer_start_channeld(struct channel *channel,
struct peer_comms *pcomms,
struct per_peer_state *pps,
const u8 *funding_signed,
bool reconnected);