mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -15,7 +15,7 @@
|
||||
#include <wallet/wallet.h>
|
||||
#include <wire/peer_wire.h>
|
||||
|
||||
struct peer_comms;
|
||||
struct per_peer_state;
|
||||
|
||||
struct peer {
|
||||
/* Inside ld->peers. */
|
||||
@@ -75,7 +75,7 @@ void peer_connected(struct lightningd *ld, const u8 *msg,
|
||||
#define OUR_CHANNEL_FLAGS CHANNEL_FLAGS_ANNOUNCE_CHANNEL
|
||||
|
||||
void channel_errmsg(struct channel *channel,
|
||||
struct peer_comms *pcomms,
|
||||
struct per_peer_state *pps,
|
||||
const struct channel_id *channel_id,
|
||||
const char *desc,
|
||||
const u8 *err_for_them);
|
||||
|
||||
Reference in New Issue
Block a user