mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
Make validators archive nodes per #157
This commit is contained in:
parent
3b920ad471
commit
7f8bb1aa9f
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
use sc_service::PartialComponents;
|
||||
use sc_service::{PruningMode, PartialComponents};
|
||||
use frame_benchmarking_cli::{ExtrinsicFactory, BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
|
||||
use sc_cli::{ChainSpec, RuntimeVersion, SubstrateCli};
|
||||
|
||||
|
@ -135,7 +135,10 @@ pub fn run() -> sc_cli::Result<()> {
|
|||
cli.create_runner(cmd)?.sync_run(|config| cmd.run::<Block>(&config))
|
||||
}
|
||||
|
||||
None => cli.create_runner(&cli.run)?.run_node_until_exit(|config| async {
|
||||
None => cli.create_runner(&cli.run)?.run_node_until_exit(|mut config| async {
|
||||
if config.role.is_authority() {
|
||||
config.state_pruning = Some(PruningMode::ArchiveAll);
|
||||
}
|
||||
service::new_full(config).await.map_err(sc_cli::Error::Service)
|
||||
}),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue