From 76ff52b601bbe2f540e8743fee1bf61871d3bf80 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 28 Feb 2018 06:25:22 +1030 Subject: [PATCH] routing: remove unused txout_state field in struct routing_channel. Signed-off-by: Rusty Russell --- gossipd/routing.c | 1 - gossipd/routing.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 9007c102d..5b421ff8f 100644 --- a/gossipd/routing.c +++ b/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->nodes[0] = chan->nodes[1] = NULL; chan->txout_script = NULL; - chan->state = TXOUT_FETCHING; chan->public = false; memset(&chan->msg_indexes, 0, sizeof(chan->msg_indexes)); return chan; diff --git a/gossipd/routing.h b/gossipd/routing.h index ab713a3e8..cbb0f091e 100644 --- a/gossipd/routing.h +++ b/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_cannouncement; -enum txout_state { - TXOUT_FETCHING, - TXOUT_PRESENT, - TXOUT_MISSING -}; - struct routing_channel { struct short_channel_id scid; - enum txout_state state; u8 *txout_script; struct node_connection *connections[2];