gossip_local_add_channel: remove unused flags field.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-03-02 19:29:16 +10:30 committed by Christian Decker
parent 9b900138d0
commit 5f5d0b3e25
3 changed files with 3 additions and 7 deletions

View File

@ -341,7 +341,7 @@ static void send_temporary_announcement(struct peer *peer)
msg = towire_gossip_local_add_channel(
tmpctx, &peer->short_channel_ids[LOCAL], &peer->chain_hash,
&peer->node_ids[REMOTE], 0 /* flags */, peer->cltv_delta,
&peer->node_ids[REMOTE], peer->cltv_delta,
peer->conf[REMOTE].htlc_minimum_msat, peer->fee_base,
peer->fee_per_satoshi);
wire_sync_write(GOSSIP_FD, take(msg));

View File

@ -764,13 +764,13 @@ static void handle_local_add_channel(struct peer *peer, u8 *msg)
struct short_channel_id scid;
struct bitcoin_blkid chain_hash;
struct pubkey remote_node_id;
u16 flags, cltv_expiry_delta, direction;
u16 cltv_expiry_delta, direction;
u32 fee_base_msat, fee_proportional_millionths;
u64 htlc_minimum_msat;
struct node_connection *c;
if (!fromwire_gossip_local_add_channel(
msg, &scid, &chain_hash, &remote_node_id, &flags,
msg, &scid, &chain_hash, &remote_node_id,
&cltv_expiry_delta, &htlc_minimum_msat, &fee_base_msat,
&fee_proportional_millionths)) {
status_trace("Unable to parse local_add_channel message: %s", tal_hex(msg, msg));
@ -790,9 +790,6 @@ static void handle_local_add_channel(struct peer *peer, u8 *msg)
return;
}
/* FIXME: unused */
(void)flags;
direction = get_channel_direction(&rstate->local_id, &remote_node_id);
c = half_add_connection(rstate, &peer->daemon->id, &remote_node_id,
&scid);

View File

@ -179,7 +179,6 @@ gossip_local_add_channel,3017
gossip_local_add_channel,,short_channel_id,struct short_channel_id
gossip_local_add_channel,,chain_hash,struct bitcoin_blkid
gossip_local_add_channel,,remote_node_id,struct pubkey
gossip_local_add_channel,,flags,u16
gossip_local_add_channel,,cltv_expiry_delta,u16
gossip_local_add_channel,,htlc_minimum_msat,u64
gossip_local_add_channel,,fee_base_msat,u32

1 #include <common/cryptomsg.h>
179 gossip_routing_failure,,channel_update,len*u8 # master->gossipd temporarily mark a channel unroutable
180 # master->gossipd temporarily mark a channel unroutable # (used in case of unparseable onion reply)
181 # (used in case of unparseable onion reply) gossip_mark_channel_unroutable,3022
gossip_mark_channel_unroutable,3022
182 gossip_mark_channel_unroutable,,channel,struct short_channel_id
183
184