From b646b9675682822403ff47e28edb4af5c8941a8c Mon Sep 17 00:00:00 2001 From: ZmnSCPxj jxPCSnmZ Date: Fri, 24 Jul 2020 15:15:41 +0800 Subject: [PATCH] lightningd/chaintopology.h: Remove unused `txnums` field from `struct block`. Changelog-None internal cleanup --- lightningd/chaintopology.c | 1 - lightningd/chaintopology.h | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index 5eb725917..4e0302bca 100644 --- a/lightningd/chaintopology.c +++ b/lightningd/chaintopology.c @@ -840,7 +840,6 @@ static struct block *new_block(struct chain_topology *topo, b->hdr = blk->hdr; - b->txnums = tal_arr(b, u32, 0); b->full_txs = tal_steal(b, blk->tx); return b; diff --git a/lightningd/chaintopology.h b/lightningd/chaintopology.h index 4f948b15f..962dd1456 100644 --- a/lightningd/chaintopology.h +++ b/lightningd/chaintopology.h @@ -60,10 +60,7 @@ struct block { /* Key for hash table */ struct bitcoin_blkid blkid; - /* And their associated index in the block */ - u32 *txnums; - - /* Full copy of txs (trimmed to txs list in connect_block) */ + /* Full copy of txs (freed in filter_block_txs) */ struct bitcoin_tx **full_txs; };