lightningd/chaintopology: remove unneeded chain_topology pointer from block.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-01-10 13:13:23 +10:30 committed by Christian Decker
parent 3332cd6395
commit 171ce689dc
2 changed files with 0 additions and 4 deletions

View File

@ -381,7 +381,6 @@ static struct block *new_block(struct chain_topology *topo,
assert(!block_map_get(&topo->block_map, &b->blkid)); assert(!block_map_get(&topo->block_map, &b->blkid));
b->next = NULL; b->next = NULL;
b->prev = NULL; b->prev = NULL;
b->topo = topo;
b->height = height; b->height = height;

View File

@ -57,9 +57,6 @@ struct block {
/* Full copy of txs (trimmed to txs list in connect_block) */ /* Full copy of txs (trimmed to txs list in connect_block) */
struct bitcoin_tx **full_txs; struct bitcoin_tx **full_txs;
/* FIXME: Remove this. */
struct chain_topology *topo;
}; };
/* Hash blocks by sha */ /* Hash blocks by sha */