File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
beacon_node/http_api/tests Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2616,7 +2616,7 @@ impl ApiTester {
2616
2616
}
2617
2617
2618
2618
pub async fn test_get_config_spec ( self ) -> Self {
2619
- let result = if self . chain . spec . fulu_fork_epoch . is_some ( ) {
2619
+ let result = if self . chain . spec . is_fulu_scheduled ( ) {
2620
2620
self . client
2621
2621
. get_config_spec :: < ConfigAndPresetFulu > ( )
2622
2622
. await
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ impl ConfigAndPreset {
52
52
let deneb_preset = DenebPreset :: from_chain_spec :: < E > ( spec) ;
53
53
let extra_fields = get_extra_fields ( spec) ;
54
54
55
- // Remove blob schedule for backwards-compatibility.
56
- if spec. is_fulu_scheduled ( ) {
57
- config. blob_schedule . set_skip_serializing ( ) ;
58
- }
59
-
60
55
if spec. is_fulu_scheduled ( ) {
61
56
let electra_preset = ElectraPreset :: from_chain_spec :: < E > ( spec) ;
62
57
let fulu_preset = FuluPreset :: from_chain_spec :: < E > ( spec) ;
@@ -73,6 +68,9 @@ impl ConfigAndPreset {
73
68
extra_fields,
74
69
} )
75
70
} else {
71
+ // Remove blob schedule for backwards-compatibility.
72
+ config. blob_schedule . set_skip_serializing ( ) ;
73
+
76
74
let electra_preset = ElectraPreset :: from_chain_spec :: < E > ( spec) ;
77
75
78
76
ConfigAndPreset :: Electra ( ConfigAndPresetElectra {
@@ -160,8 +158,8 @@ mod test {
160
158
. write ( false )
161
159
. open ( tmp_file. as_ref ( ) )
162
160
. expect ( "error while opening the file" ) ;
163
- let from: ConfigAndPresetElectra =
161
+ let from: ConfigAndPresetFulu =
164
162
serde_yaml:: from_reader ( reader) . expect ( "error while deserializing" ) ;
165
- assert_eq ! ( ConfigAndPreset :: Electra ( from) , yamlconfig) ;
163
+ assert_eq ! ( ConfigAndPreset :: Fulu ( from) , yamlconfig) ;
166
164
}
167
165
}
You can’t perform that action at this time.
0 commit comments