@@ -821,12 +821,12 @@ pub enum Event {
821821 user_channel_id : u128 ,
822822 /// The reason the channel was closed.
823823 reason : ClosureReason ,
824- /// Counterparty in the closed channel.
825- ///
824+ /// Counterparty in the closed channel.
825+ ///
826826 /// This field will be `None` for objects serialized prior to LDK 0.0.117.
827827 counterparty_node_id : Option < PublicKey > ,
828- /// Channel capacity of the closing channel (sats).
829- ///
828+ /// Channel capacity of the closing channel (sats).
829+ ///
830830 /// This field will be `None` for objects serialized prior to LDK 0.0.117.
831831 channel_capacity_sats : Option < u64 > ,
832832 } ,
@@ -1030,8 +1030,8 @@ impl Writeable for Event {
10301030 ( 5 , outbound_amount_forwarded_msat, option) ,
10311031 } ) ;
10321032 } ,
1033- & Event :: ChannelClosed { ref channel_id, ref user_channel_id, ref reason,
1034- ref counterparty_node_id, ref channel_capacity_sats
1033+ & Event :: ChannelClosed { ref channel_id, ref user_channel_id, ref reason,
1034+ ref counterparty_node_id, ref channel_capacity_sats
10351035 } => {
10361036 9u8 . write ( writer) ?;
10371037 // `user_channel_id` used to be a single u64 value. In order to remain backwards
@@ -1368,7 +1368,7 @@ impl MaybeReadable for Event {
13681368 } ,
13691369 13u8 => {
13701370 let f = || {
1371- _init_and_read_tlv_fields ! ( reader, {
1371+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
13721372 ( 0 , payment_id, required) ,
13731373 ( 2 , payment_hash, option) ,
13741374 ( 4 , path, required_vec) ,
@@ -1433,7 +1433,7 @@ impl MaybeReadable for Event {
14331433 } ,
14341434 21u8 => {
14351435 let f = || {
1436- _init_and_read_tlv_fields ! ( reader, {
1436+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
14371437 ( 0 , payment_id, required) ,
14381438 ( 2 , payment_hash, required) ,
14391439 ( 4 , path, required_vec) ,
@@ -1449,7 +1449,7 @@ impl MaybeReadable for Event {
14491449 } ,
14501450 23u8 => {
14511451 let f = || {
1452- _init_and_read_tlv_fields ! ( reader, {
1452+ _init_and_read_len_prefixed_tlv_fields ! ( reader, {
14531453 ( 0 , payment_id, required) ,
14541454 ( 2 , payment_hash, required) ,
14551455 ( 4 , path, required_vec) ,
0 commit comments