Browse Source

routing: remove unused txout_state field in struct routing_channel.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
76ff52b601
  1. 1
      gossipd/routing.c
  2. 7
      gossipd/routing.h

1
gossipd/routing.c

@ -589,7 +589,6 @@ struct routing_channel *routing_channel_new(const tal_t *ctx,
chan->connections[0] = chan->connections[1] = NULL; chan->connections[0] = chan->connections[1] = NULL;
chan->nodes[0] = chan->nodes[1] = NULL; chan->nodes[0] = chan->nodes[1] = NULL;
chan->txout_script = NULL; chan->txout_script = NULL;
chan->state = TXOUT_FETCHING;
chan->public = false; chan->public = false;
memset(&chan->msg_indexes, 0, sizeof(chan->msg_indexes)); memset(&chan->msg_indexes, 0, sizeof(chan->msg_indexes));
return chan; return chan;

7
gossipd/routing.h

@ -89,15 +89,8 @@ HTABLE_DEFINE_TYPE(struct node, node_map_keyof_node, node_map_hash_key, node_map
struct pending_node_map; struct pending_node_map;
struct pending_cannouncement; struct pending_cannouncement;
enum txout_state {
TXOUT_FETCHING,
TXOUT_PRESENT,
TXOUT_MISSING
};
struct routing_channel { struct routing_channel {
struct short_channel_id scid; struct short_channel_id scid;
enum txout_state state;
u8 *txout_script; u8 *txout_script;
struct node_connection *connections[2]; struct node_connection *connections[2];

Loading…
Cancel
Save