Browse Source

bitcoin: remove unused struct bitcoin_tx_input.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
nifty/pset-pre
Rusty Russell 5 years ago
parent
commit
4bcac3032c
  1. 1
      bitcoin/script.h
  2. 11
      bitcoin/tx.h

1
bitcoin/script.h

@ -7,7 +7,6 @@
#include <ccan/tal/tal.h> #include <ccan/tal/tal.h>
struct bitcoin_address; struct bitcoin_address;
struct bitcoin_tx_input;
struct preimage; struct preimage;
struct pubkey; struct pubkey;
struct sha256; struct sha256;

11
bitcoin/tx.h

@ -40,17 +40,6 @@ struct bitcoin_tx_output {
u8 *script; 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 */ /* SHA256^2 the tx: simpler than sha256_tx */
void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid); void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid);

Loading…
Cancel
Save