gossipd: remove gossip_msg.[ch]

This was a remnant from when we used to get routing from gossipd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-12-04 21:57:32 +10:30
parent 484222b0a1
commit d22fd59997
9 changed files with 5 additions and 74 deletions

View file

@ -92,7 +92,6 @@ CHANNELD_COMMON_OBJS := \
common/wireaddr.o \ common/wireaddr.o \
gossipd/gossipd_peerd_wiregen.o \ gossipd/gossipd_peerd_wiregen.o \
gossipd/gossip_store_wiregen.o \ gossipd/gossip_store_wiregen.o \
lightningd/gossip_msg.o \
wire/fromwire.o \ wire/fromwire.o \
wire/towire.o wire/towire.o

View file

@ -71,7 +71,6 @@ CONNECTD_COMMON_OBJS := \
common/wireaddr.o \ common/wireaddr.o \
common/wire_error.o \ common/wire_error.o \
gossipd/gossipd_wiregen.o \ gossipd/gossipd_wiregen.o \
lightningd/gossip_msg.o \
wire/onion$(EXP)_wiregen.o wire/onion$(EXP)_wiregen.o
lightningd/lightning_connectd: $(CONNECTD_OBJS) $(CONNECTD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(HSMD_CLIENT_OBJS) lightningd/lightning_connectd: $(CONNECTD_OBJS) $(CONNECTD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(HSMD_CLIENT_OBJS)

View file

@ -10,7 +10,9 @@
#include "config.h" #include "config.h"
#include <ccan/array_size/array_size.h> #include <ccan/array_size/array_size.h>
#include <ccan/asort/asort.h> #include <ccan/asort/asort.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/fdpass/fdpass.h> #include <ccan/fdpass/fdpass.h>
#include <ccan/htable/htable_type.h>
#include <ccan/noerr/noerr.h> #include <ccan/noerr/noerr.h>
#include <ccan/tal/str/str.h> #include <ccan/tal/str/str.h>
#include <common/bech32.h> #include <common/bech32.h>

View file

@ -1,8 +1,9 @@
#include <bitcoin/block.h>
#include <common/cryptomsg.h> #include <common/cryptomsg.h>
#include <common/features.h> #include <common/features.h>
#include <common/node_id.h>
#include <common/per_peer_state.h> #include <common/per_peer_state.h>
#include <common/wireaddr.h> #include <common/wireaddr.h>
#include <lightningd/gossip_msg.h>
msgtype,connectd_init,2000 msgtype,connectd_init,2000
msgdata,connectd_init,chainparams,chainparams, msgdata,connectd_init,chainparams,chainparams,

1 #include <common/cryptomsg.h> #include <bitcoin/block.h>
1 #include <bitcoin/block.h>
2 #include <common/cryptomsg.h> #include <common/cryptomsg.h>
3 #include <common/features.h> #include <common/features.h>
4 #include <common/node_id.h>
5 #include <common/per_peer_state.h> #include <common/per_peer_state.h>
6 #include <common/wireaddr.h> #include <common/wireaddr.h>
#include <lightningd/gossip_msg.h>
7 msgtype,connectd_init,2000 msgtype,connectd_init,2000
8 msgdata,connectd_init,chainparams,chainparams, msgdata,connectd_init,chainparams,chainparams,
9 msgdata,connectd_init,our_features,feature_set, msgdata,connectd_init,our_features,feature_set,

View file

@ -75,7 +75,6 @@ GOSSIPD_COMMON_OBJS := \
common/wireaddr.o \ common/wireaddr.o \
common/wire_error.o \ common/wire_error.o \
connectd/connectd_gossipd_wiregen.o \ connectd/connectd_gossipd_wiregen.o \
lightningd/gossip_msg.o \
wire/onion$(EXP)_wiregen.o wire/onion$(EXP)_wiregen.o
lightningd/lightning_gossipd: $(GOSSIPD_OBJS) $(GOSSIPD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(HSMD_CLIENT_OBJS) lightningd/lightning_gossipd: $(GOSSIPD_OBJS) $(GOSSIPD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(HSMD_CLIENT_OBJS)

View file

@ -34,8 +34,8 @@
#include <gossipd/gossipd_peerd_wiregen.h> #include <gossipd/gossipd_peerd_wiregen.h>
#include <gossipd/gossipd_wiregen.h> #include <gossipd/gossipd_wiregen.h>
#include <gossipd/queries.h> #include <gossipd/queries.h>
#include <gossipd/routing.h>
#include <gossipd/seeker.h> #include <gossipd/seeker.h>
#include <lightningd/gossip_msg.h>
#include <sodium/crypto_aead_chacha20poly1305.h> #include <sodium/crypto_aead_chacha20poly1305.h>
/*~ A channel consists of a `struct half_chan` for each direction, each of /*~ A channel consists of a `struct half_chan` for each direction, each of

View file

@ -11,7 +11,6 @@ LIGHTNINGD_SRC := \
lightningd/connect_control.c \ lightningd/connect_control.c \
lightningd/onion_message.c \ lightningd/onion_message.c \
lightningd/gossip_control.c \ lightningd/gossip_control.c \
lightningd/gossip_msg.c \
lightningd/hsm_control.c \ lightningd/hsm_control.c \
lightningd/htlc_end.c \ lightningd/htlc_end.c \
lightningd/htlc_set.c \ lightningd/htlc_set.c \

View file

@ -1,24 +0,0 @@
#include "config.h"
#include <ccan/array_size/array_size.h>
#include <common/bolt11.h>
#include <common/wireaddr.h>
#include <lightningd/gossip_msg.h>
#include <wire/peer_wire.h>
void fromwire_route_info(const u8 **pptr, size_t *max, struct route_info *entry)
{
fromwire_node_id(pptr, max, &entry->pubkey);
fromwire_short_channel_id(pptr, max, &entry->short_channel_id);
entry->fee_base_msat = fromwire_u32(pptr, max);
entry->fee_proportional_millionths = fromwire_u32(pptr, max);
entry->cltv_expiry_delta = fromwire_u16(pptr, max);
}
void towire_route_info(u8 **pptr, const struct route_info *entry)
{
towire_node_id(pptr, &entry->pubkey);
towire_short_channel_id(pptr, &entry->short_channel_id);
towire_u32(pptr, entry->fee_base_msat);
towire_u32(pptr, entry->fee_proportional_millionths);
towire_u16(pptr, entry->cltv_expiry_delta);
}

View file

@ -1,44 +0,0 @@
#ifndef LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
#define LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
#include "config.h"
#include <bitcoin/pubkey.h>
#include <gossipd/routing.h>
struct route_info;
struct lease_rates;
struct gossip_getnodes_entry {
struct node_id nodeid;
s64 last_timestamp; /* -1 means never: following fields ignored */
u8 *features;
struct wireaddr *addresses;
u8 alias[32];
u8 color[3];
struct lease_rates *rates;
};
struct gossip_halfchannel_entry {
u8 message_flags;
u8 channel_flags;
u32 last_update_timestamp;
u32 delay;
u32 base_fee_msat;
u32 fee_per_millionth;
struct amount_msat min, max;
};
struct gossip_getchannels_entry {
struct node_id node[2];
struct amount_sat sat;
struct short_channel_id short_channel_id;
bool public;
bool local_disabled;
/* NULL if we haven't received an update */
struct gossip_halfchannel_entry *e[2];
u8 *features;
};
void fromwire_route_info(const u8 **pprt, size_t *max, struct route_info *entry);
void towire_route_info(u8 **pprt, const struct route_info *entry);
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H */