From: Jeffrey Czyz Date: Fri, 30 Jul 2021 20:40:26 +0000 (-0500) Subject: f - Don't write ChannelMonitor shutdown script as TLV X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=943934ab214ed9ae21ee38fedaecfa3a1d516883;p=rust-lightning f - Don't write ChannelMonitor shutdown script as TLV --- diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index cfbd0e64f..d57d50c61 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -791,10 +791,6 @@ impl Writeable for ChannelMonitorImpl { self.lockdown_from_offchain.write(writer)?; self.holder_tx_signed.write(writer)?; - write_tlv_fields!(writer, { - (1, self.shutdown_script, option), - }); - Ok(()) } } @@ -2611,7 +2607,7 @@ impl<'a, Signer: Sign, K: KeysInterface> ReadableArgs<&'a K> _ => return Err(DecodeError::InvalidValue), }; let counterparty_payment_script = Readable::read(reader)?; - let mut shutdown_script = { + let shutdown_script = { let script =