From 4bcac3032c31b9273d2ea0bc57a9c84db853dda1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 May 2020 12:48:27 +0930 Subject: [PATCH] bitcoin: remove unused struct bitcoin_tx_input. Signed-off-by: Rusty Russell --- bitcoin/script.h | 1 - bitcoin/tx.h | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/bitcoin/script.h b/bitcoin/script.h index 69f46fcde..3dc96b525 100644 --- a/bitcoin/script.h +++ b/bitcoin/script.h @@ -7,7 +7,6 @@ #include struct bitcoin_address; -struct bitcoin_tx_input; struct preimage; struct pubkey; struct sha256; diff --git a/bitcoin/tx.h b/bitcoin/tx.h index 50c414970..fa767cf14 100644 --- a/bitcoin/tx.h +++ b/bitcoin/tx.h @@ -40,17 +40,6 @@ struct bitcoin_tx_output { u8 *script; }; -struct bitcoin_tx_input { - struct bitcoin_txid txid; - u32 index; /* output number referred to by above */ - u8 *script; - u32 sequence_number; - - /* Only if BIP141 used. */ - u8 **witness; -}; - - /* SHA256^2 the tx: simpler than sha256_tx */ void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid);