Browse Source

lightningd/chaintopology: remove unneeded chain_topology pointer from block.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
171ce689dc
  1. 1
      lightningd/chaintopology.c
  2. 3
      lightningd/chaintopology.h

1
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;

3
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 */

Loading…
Cancel
Save