@@ -1059,6 +1059,9 @@ pub struct _Validator {
10591059 // Warp the ledger to WARP_SLOT after starting the validator.
10601060 #[ serde( skip_serializing_if = "Option::is_none" ) ]
10611061 pub warp_slot : Option < String > ,
1062+ // Deactivate one or more features.
1063+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
1064+ pub deactivate_feature : Option < Vec < String > > ,
10621065}
10631066
10641067#[ derive( Debug , Default , Clone , Serialize , Deserialize ) ]
@@ -1094,6 +1097,8 @@ pub struct Validator {
10941097 pub ticks_per_slot : Option < u16 > ,
10951098 #[ serde( skip_serializing_if = "Option::is_none" ) ]
10961099 pub warp_slot : Option < String > ,
1100+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
1101+ pub deactivate_feature : Option < Vec < String > > ,
10971102}
10981103
10991104impl From < _Validator > for Validator {
@@ -1122,6 +1127,7 @@ impl From<_Validator> for Validator {
11221127 slots_per_epoch : _validator. slots_per_epoch ,
11231128 ticks_per_slot : _validator. ticks_per_slot ,
11241129 warp_slot : _validator. warp_slot ,
1130+ deactivate_feature : _validator. deactivate_feature ,
11251131 }
11261132 }
11271133}
@@ -1146,6 +1152,7 @@ impl From<Validator> for _Validator {
11461152 slots_per_epoch : validator. slots_per_epoch ,
11471153 ticks_per_slot : validator. ticks_per_slot ,
11481154 warp_slot : validator. warp_slot ,
1155+ deactivate_feature : validator. deactivate_feature ,
11491156 }
11501157 }
11511158}
@@ -1235,6 +1242,9 @@ impl Merge for _Validator {
12351242 . or_else ( || self . slots_per_epoch . take ( ) ) ,
12361243 ticks_per_slot : other. ticks_per_slot . or_else ( || self . ticks_per_slot . take ( ) ) ,
12371244 warp_slot : other. warp_slot . or_else ( || self . warp_slot . take ( ) ) ,
1245+ deactivate_feature : other
1246+ . deactivate_feature
1247+ . or_else ( || self . deactivate_feature . take ( ) ) ,
12381248 } ;
12391249 }
12401250}
0 commit comments