Support network in dumps

This commit is contained in:
Louis Dureuil 2025-01-29 17:31:37 +01:00
parent 4918b9ffb6
commit e34afca6d7
No known key found for this signature in database
6 changed files with 46 additions and 2 deletions

View file

@ -431,10 +431,13 @@ fn import_dump(
keys.push(key);
}
// 3. Import the runtime features.
// 3. Import the runtime features and network
let features = dump_reader.features()?.unwrap_or_default();
index_scheduler.put_runtime_features(features)?;
let network = dump_reader.network()?.cloned().unwrap_or_default();
index_scheduler.put_network(network)?;
let indexer_config = index_scheduler.indexer_config();
// /!\ The tasks must be imported AFTER importing the indexes or else the scheduler might