@@ -1131,6 +1131,8 @@ pub enum Event {
1131
1131
error_code : Option < u16 > ,
1132
1132
#[ cfg( any( test, feature = "_test_utils" ) ) ]
1133
1133
error_data : Option < Vec < u8 > > ,
1134
+ #[ cfg( any( test, feature = "_test_utils" ) ) ]
1135
+ hold_times : Vec < u32 > ,
1134
1136
} ,
1135
1137
/// Indicates that a probe payment we sent returned successful, i.e., only failed at the destination.
1136
1138
///
@@ -1696,12 +1698,16 @@ impl Writeable for Event {
1696
1698
ref error_code,
1697
1699
#[ cfg( any( test, feature = "_test_utils") ) ]
1698
1700
ref error_data,
1701
+ #[ cfg( any( test, feature = "_test_utils") ) ]
1702
+ ref hold_times,
1699
1703
} => {
1700
1704
3u8 . write ( writer) ?;
1701
1705
#[ cfg( any( test, feature = "_test_utils" ) ) ]
1702
1706
error_code. write ( writer) ?;
1703
1707
#[ cfg( any( test, feature = "_test_utils" ) ) ]
1704
1708
error_data. write ( writer) ?;
1709
+ #[ cfg( any( test, feature = "_test_utils" ) ) ]
1710
+ hold_times. write ( writer) ?;
1705
1711
write_tlv_fields ! ( writer, {
1706
1712
( 0 , payment_hash, required) ,
1707
1713
( 1 , None :: <NetworkUpdate >, option) , // network_update in LDK versions prior to 0.0.114
@@ -2121,6 +2127,8 @@ impl MaybeReadable for Event {
2121
2127
let error_code = Readable :: read ( reader) ?;
2122
2128
#[ cfg( any( test, feature = "_test_utils" ) ) ]
2123
2129
let error_data = Readable :: read ( reader) ?;
2130
+ #[ cfg( any( test, feature = "_test_utils" ) ) ]
2131
+ let hold_times = Readable :: read ( reader) ?;
2124
2132
let mut payment_hash = PaymentHash ( [ 0 ; 32 ] ) ;
2125
2133
let mut payment_failed_permanently = false ;
2126
2134
let mut network_update = None ;
@@ -2154,6 +2162,8 @@ impl MaybeReadable for Event {
2154
2162
error_code,
2155
2163
#[ cfg( any( test, feature = "_test_utils" ) ) ]
2156
2164
error_data,
2165
+ #[ cfg( any( test, feature = "_test_utils" ) ) ]
2166
+ hold_times,
2157
2167
} ) )
2158
2168
} ;
2159
2169
f ( )
0 commit comments