utxo: remove unused scriptSig field.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2020-08-07 10:43:37 +09:30
parent 03b4662c24
commit c1df8d586d
3 changed files with 0 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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)) {