mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
lightningd/chaintopology: remove unneeded chain_topology pointer from block.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
3332cd6395
commit
171ce689dc
@ -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;
|
||||||
|
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user