@@ -768,12 +768,12 @@ pub enum Event {
768768 user_channel_id : u128 ,
769769 /// The reason the channel was closed.
770770 reason : ClosureReason ,
771- /// Counterparty in the closed channel.
772- ///
771+ /// Counterparty in the closed channel.
772+ ///
773773 /// This field will be `None` for objects serialized prior to LDK 0.0.117.
774774 counterparty_node_id : Option < PublicKey > ,
775- /// Channel capacity of the closing channel (sats).
776- ///
775+ /// Channel capacity of the closing channel (sats).
776+ ///
777777 /// This field will be `None` for objects serialized prior to LDK 0.0.117.
778778 channel_capacity_sats : Option < u64 > ,
779779 } ,
@@ -976,8 +976,8 @@ impl Writeable for Event {
976976 ( 5 , outbound_amount_forwarded_msat, option) ,
977977 } ) ;
978978 } ,
979- & Event :: ChannelClosed { ref channel_id, ref user_channel_id, ref reason,
980- ref counterparty_node_id, ref channel_capacity_sats
979+ & Event :: ChannelClosed { ref channel_id, ref user_channel_id, ref reason,
980+ ref counterparty_node_id, ref channel_capacity_sats
981981 } => {
982982 9u8 . write ( writer) ?;
983983 // `user_channel_id` used to be a single u64 value. In order to remain backwards
@@ -1312,7 +1312,7 @@ impl MaybeReadable for Event {
13121312 } ,
13131313 13u8 => {
13141314 let f = || {
1315- _init_and_read_tlv_fields ! ( reader, {
1315+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
13161316 ( 0 , payment_id, required) ,
13171317 ( 2 , payment_hash, option) ,
13181318 ( 4 , path, required_vec) ,
@@ -1371,7 +1371,7 @@ impl MaybeReadable for Event {
13711371 } ,
13721372 21u8 => {
13731373 let f = || {
1374- _init_and_read_tlv_fields ! ( reader, {
1374+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
13751375 ( 0 , payment_id, required) ,
13761376 ( 2 , payment_hash, required) ,
13771377 ( 4 , path, required_vec) ,
@@ -1387,7 +1387,7 @@ impl MaybeReadable for Event {
13871387 } ,
13881388 23u8 => {
13891389 let f = || {
1390- _init_and_read_tlv_fields ! ( reader, {
1390+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
13911391 ( 0 , payment_id, required) ,
13921392 ( 2 , payment_hash, required) ,
13931393 ( 4 , path, required_vec) ,
0 commit comments