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