From 943934ab214ed9ae21ee38fedaecfa3a1d516883 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 30 Jul 2021 15:40:26 -0500 Subject: [PATCH] f - Don't write ChannelMonitor shutdown script as TLV --- lightning/src/chain/channelmonitor.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 =