mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
utxo: remove unused scriptSig field.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
03b4662c24
commit
c1df8d586d
@ -21,8 +21,6 @@ void towire_utxo(u8 **pptr, const struct utxo *utxo)
|
||||
|
||||
towire_u16(pptr, tal_count(utxo->scriptPubkey));
|
||||
towire_u8_array(pptr, utxo->scriptPubkey, tal_count(utxo->scriptPubkey));
|
||||
towire_u16(pptr, tal_count(utxo->scriptSig));
|
||||
towire_u8_array(pptr, utxo->scriptSig, tal_count(utxo->scriptSig));
|
||||
|
||||
towire_bool(pptr, is_unilateral_close);
|
||||
if (is_unilateral_close) {
|
||||
@ -45,7 +43,6 @@ struct utxo *fromwire_utxo(const tal_t *ctx, const u8 **ptr, size_t *max)
|
||||
utxo->is_p2sh = fromwire_bool(ptr, max);
|
||||
|
||||
utxo->scriptPubkey = fromwire_tal_arrn(utxo, ptr, max, fromwire_u16(ptr, max));
|
||||
utxo->scriptSig = fromwire_tal_arrn(utxo, ptr, max, fromwire_u16(ptr, max));
|
||||
|
||||
if (fromwire_bool(ptr, max)) {
|
||||
utxo->close_info = tal(utxo, struct unilateral_close_info);
|
||||
|
@ -44,9 +44,6 @@ struct utxo {
|
||||
|
||||
/* The scriptPubkey if it is known */
|
||||
u8 *scriptPubkey;
|
||||
|
||||
/* scriptSig. Only for P2SH outputs */
|
||||
u8 *scriptSig;
|
||||
};
|
||||
|
||||
void towire_utxo(u8 **pptr, const struct utxo *utxo);
|
||||
|
@ -187,7 +187,6 @@ static struct utxo *wallet_stmt2output(const tal_t *ctx, struct db_stmt *stmt)
|
||||
|
||||
utxo->blockheight = NULL;
|
||||
utxo->spendheight = NULL;
|
||||
utxo->scriptSig = NULL;
|
||||
utxo->reserved_til = NULL;
|
||||
|
||||
if (!db_column_is_null(stmt, 9)) {
|
||||
|
Loading…
Reference in New Issue
Block a user