File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1048,7 +1048,7 @@ fn two_peer_forwarding_seed() -> Vec<u8> {
1048
1048
// our network key
1049
1049
ext_from_hex ( "0100000000000000000000000000000000000000000000000000000000000000" , & mut test) ;
1050
1050
// config
1051
- ext_from_hex ( "000000000090000000000000000064000100000000000100ffff0000000000000000ffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff000000ffffffff00ffff1a000400010000020400000000040200000a08ffffffffffffffff00010000000000 " , & mut test) ;
1051
+ ext_from_hex ( "000000000090000000000000000064000100000000000100ffff0000000000000000ffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff000000ffffffff00ffff1a000400010000020400000000040200000a08ffffffffffffffff0001000000000000 " , & mut test) ;
1052
1052
1053
1053
// new outbound connection with id 0
1054
1054
ext_from_hex ( "00" , & mut test) ;
@@ -1502,7 +1502,7 @@ fn gossip_exchange_seed() -> Vec<u8> {
1502
1502
// our network key
1503
1503
ext_from_hex ( "0100000000000000000000000000000000000000000000000000000000000000" , & mut test) ;
1504
1504
// config
1505
- ext_from_hex ( "000000000090000000000000000064000100000000000100ffff0000000000000000ffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff000000ffffffff00ffff1a000400010000020400000000040200000a08ffffffffffffffff00010000000000 " , & mut test) ;
1505
+ ext_from_hex ( "000000000090000000000000000064000100000000000100ffff0000000000000000ffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff000000ffffffff00ffff1a000400010000020400000000040200000a08ffffffffffffffff0001000000000000 " , & mut test) ;
1506
1506
1507
1507
// new outbound connection with id 0
1508
1508
ext_from_hex ( "00" , & mut test) ;
Original file line number Diff line number Diff line change @@ -15203,9 +15203,6 @@ pub fn provided_init_features(config: &UserConfig) -> InitFeatures {
15203
15203
features.set_anchor_zero_fee_commitments_optional();
15204
15204
}
15205
15205
15206
- // If we are configured to be an announced node, we are expected to be always-online and can
15207
- // advertise the htlc_hold feature.
15208
- #[cfg(test)]
15209
15206
if config.enable_htlc_hold {
15210
15207
features.set_htlc_hold_optional();
15211
15208
}
Original file line number Diff line number Diff line change @@ -941,7 +941,6 @@ pub struct UserConfig {
941
941
/// Setting this to `true` may break backwards compatibility with LDK versions < 0.2.
942
942
///
943
943
/// Default value: `false`
944
- #[ cfg( test) ]
945
944
pub enable_htlc_hold : bool ,
946
945
/// If this is set to true, then if we as an often-offline payer receive a [`StaticInvoice`] to
947
946
/// pay, we will attempt to hold the corresponding outbound HTLCs with our next-hop channel
@@ -971,7 +970,6 @@ impl Default for UserConfig {
971
970
accept_intercept_htlcs : false ,
972
971
manually_handle_bolt12_invoices : false ,
973
972
enable_dual_funded_channels : false ,
974
- #[ cfg( test) ]
975
973
enable_htlc_hold : false ,
976
974
hold_outbound_htlcs_at_next_hop : false ,
977
975
}
@@ -995,6 +993,7 @@ impl Readable for UserConfig {
995
993
manually_handle_bolt12_invoices : Readable :: read ( reader) ?,
996
994
enable_dual_funded_channels : Readable :: read ( reader) ?,
997
995
hold_outbound_htlcs_at_next_hop : Readable :: read ( reader) ?,
996
+ enable_htlc_hold : Readable :: read ( reader) ?,
998
997
} )
999
998
}
1000
999
}
You can’t perform that action at this time.
0 commit comments