@@ -856,7 +856,7 @@ mod tests {
856
856
// Set a bunch of features we use, plus initial_routing_sync_required (which shouldn't get
857
857
// converted as it's only relevant in an init context).
858
858
init_features. set_initial_routing_sync_required ( ) ;
859
- init_features. set_data_loss_protect_optional ( ) ;
859
+ init_features. set_data_loss_protect_required ( ) ;
860
860
init_features. set_variable_length_onion_required ( ) ;
861
861
init_features. set_static_remote_key_required ( ) ;
862
862
init_features. set_payment_secret_required ( ) ;
@@ -876,15 +876,15 @@ mod tests {
876
876
let node_features: NodeFeatures = init_features. to_context ( ) ;
877
877
{
878
878
// Check that the flags are as expected:
879
- // - option_data_loss_protect
879
+ // - option_data_loss_protect (req)
880
880
// - var_onion_optin (req) | static_remote_key (req) | payment_secret(req)
881
881
// - basic_mpp | wumbo
882
882
// - opt_shutdown_anysegwit
883
883
// - onion_messages
884
884
// - option_channel_type | option_scid_alias
885
885
// - option_zeroconf
886
886
assert_eq ! ( node_features. flags. len( ) , 7 ) ;
887
- assert_eq ! ( node_features. flags[ 0 ] , 0b00000010 ) ;
887
+ assert_eq ! ( node_features. flags[ 0 ] , 0b00000001 ) ;
888
888
assert_eq ! ( node_features. flags[ 1 ] , 0b01010001 ) ;
889
889
assert_eq ! ( node_features. flags[ 2 ] , 0b10001010 ) ;
890
890
assert_eq ! ( node_features. flags[ 3 ] , 0b00001000 ) ;
0 commit comments