]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #2337 from alecchendev/2023-06-watchtower-support
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Wed, 23 Aug 2023 20:05:40 +0000 (20:05 +0000)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 20:05:40 +0000 (20:05 +0000)
Support third-party watchtowers in persistence pipeline

1  2 
lightning/src/ln/chan_utils.rs

index 9ee564df59d99e7679b244101bab4c0c5742ff68,a12665dbaab1183d9d2da171e52a548dda8bcccb..18048d8efd87a50fea85cd037f375148b0f916c3
@@@ -1356,8 -1360,9 +1360,9 @@@ impl Writeable for CommitmentTransactio
  
  impl Readable for CommitmentTransaction {
        fn read<R: io::Read>(reader: &mut R) -> Result<Self, DecodeError> {
 -              _init_and_read_tlv_fields!(reader, {
 +              _init_and_read_len_prefixed_tlv_fields!(reader, {
                        (0, commitment_number, required),
+                       (1, to_broadcaster_delay, option),
                        (2, to_broadcaster_value_sat, required),
                        (4, to_countersignatory_value_sat, required),
                        (6, feerate_per_kw, required),