From 171ce689dc198adafcf6a73f1407896266f66e42 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 10 Jan 2018 13:13:23 +1030 Subject: [PATCH] lightningd/chaintopology: remove unneeded chain_topology pointer from block. Signed-off-by: Rusty Russell --- lightningd/chaintopology.c | 1 - lightningd/chaintopology.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index 451226062..105eeb7ac 100644 --- a/lightningd/chaintopology.c +++ b/lightningd/chaintopology.c @@ -381,7 +381,6 @@ static struct block *new_block(struct chain_topology *topo, assert(!block_map_get(&topo->block_map, &b->blkid)); b->next = NULL; b->prev = NULL; - b->topo = topo; b->height = height; diff --git a/lightningd/chaintopology.h b/lightningd/chaintopology.h index 6f5c24b0f..48669d8f3 100644 --- a/lightningd/chaintopology.h +++ b/lightningd/chaintopology.h @@ -57,9 +57,6 @@ struct block { /* Full copy of txs (trimmed to txs list in connect_block) */ struct bitcoin_tx **full_txs; - - /* FIXME: Remove this. */ - struct chain_topology *topo; }; /* Hash blocks by sha */