@@ -115,10 +115,13 @@ fn monitoring_config(
115115 assert_eq ! ( component_exe_config. validate( ) . is_ok( ) , expected_successful_validation) ;
116116}
117117
118- fn state_sync_config_with_state_only ( ) -> StateSyncConfig {
118+ fn state_sync_config_with_full_archive ( ) -> StateSyncConfig {
119119 StateSyncConfig {
120120 static_config : StateSyncStaticConfig {
121- storage_config : StorageConfig { scope : StorageScope :: StateOnly , ..Default :: default ( ) } ,
121+ storage_config : StorageConfig {
122+ scope : StorageScope :: FullArchive ,
123+ ..Default :: default ( )
124+ } ,
122125 ..Default :: default ( )
123126 } ,
124127 ..Default :: default ( )
@@ -136,7 +139,7 @@ fn validation_only_with_gateway_enabled_fails() {
136139 mempool_p2p : ReactiveComponentExecutionConfig :: default ( ) ,
137140 ..Default :: default ( )
138141 } ,
139- state_sync_config : Some ( state_sync_config_with_state_only ( ) ) ,
142+ state_sync_config : Some ( state_sync_config_with_full_archive ( ) ) ,
140143 ..Default :: default ( )
141144 } ;
142145 let err = config. validate_node_config ( ) . unwrap_err ( ) ;
@@ -156,7 +159,7 @@ fn validation_only_with_http_server_enabled_fails() {
156159 ..Default :: default ( )
157160 } ,
158161 gateway_config : None ,
159- state_sync_config : Some ( state_sync_config_with_state_only ( ) ) ,
162+ state_sync_config : Some ( state_sync_config_with_full_archive ( ) ) ,
160163 ..Default :: default ( )
161164 } ;
162165 let err = config. validate_node_config ( ) . unwrap_err ( ) ;
@@ -177,7 +180,7 @@ fn validation_only_with_mempool_enabled_fails() {
177180 } ,
178181 gateway_config : None ,
179182 http_server_config : None ,
180- state_sync_config : Some ( state_sync_config_with_state_only ( ) ) ,
183+ state_sync_config : Some ( state_sync_config_with_full_archive ( ) ) ,
181184 ..Default :: default ( )
182185 } ;
183186 let err = config. validate_node_config ( ) . unwrap_err ( ) ;
@@ -199,7 +202,7 @@ fn validation_only_with_mempool_p2p_enabled_fails() {
199202 gateway_config : None ,
200203 http_server_config : None ,
201204 mempool_config : None ,
202- state_sync_config : Some ( state_sync_config_with_state_only ( ) ) ,
205+ state_sync_config : Some ( state_sync_config_with_full_archive ( ) ) ,
203206 ..Default :: default ( )
204207 } ;
205208 let err = config. validate_node_config ( ) . unwrap_err ( ) ;
@@ -221,14 +224,14 @@ fn validation_only_with_tx_ingestion_disabled_succeeds() {
221224 http_server_config : None ,
222225 mempool_config : None ,
223226 mempool_p2p_config : None ,
224- state_sync_config : Some ( state_sync_config_with_state_only ( ) ) ,
227+ state_sync_config : Some ( state_sync_config_with_full_archive ( ) ) ,
225228 ..Default :: default ( )
226229 } ;
227230 assert ! ( config. validate_node_config( ) . is_ok( ) ) ;
228231}
229232
230233#[ test]
231- fn validation_only_with_full_archive_state_sync_fails ( ) {
234+ fn validation_only_with_state_only_state_sync_fails ( ) {
232235 let config = SequencerNodeConfig {
233236 validation_only : true ,
234237 components : ComponentConfig {
@@ -245,7 +248,7 @@ fn validation_only_with_full_archive_state_sync_fails() {
245248 state_sync_config : Some ( StateSyncConfig {
246249 static_config : StateSyncStaticConfig {
247250 storage_config : StorageConfig {
248- scope : StorageScope :: FullArchive ,
251+ scope : StorageScope :: StateOnly ,
249252 ..Default :: default ( )
250253 } ,
251254 ..Default :: default ( )
@@ -255,5 +258,5 @@ fn validation_only_with_full_archive_state_sync_fails() {
255258 ..Default :: default ( )
256259 } ;
257260 let err = config. validate_node_config ( ) . unwrap_err ( ) ;
258- assert ! ( format!( "{err:?}" ) . contains( "StateOnly " ) , "Unexpected error: {err:?}" ) ;
261+ assert ! ( format!( "{err:?}" ) . contains( "FullArchive " ) , "Unexpected error: {err:?}" ) ;
259262}
0 commit comments