Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
enable sync from dsn for gemini3g
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Nov 24, 2023
1 parent 63cb4a5 commit e889fdf
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ use serde::{Deserialize, Serialize};
use sp_core::crypto::{AccountId32, Ss58Codec};
use strum_macros::EnumIter;
use subspace_sdk::farmer::Farmer;
use subspace_sdk::node::{
DomainConfigBuilder, DsnBuilder, NetworkBuilder, Node, Role,
};
use subspace_sdk::node::{DomainConfigBuilder, DsnBuilder, NetworkBuilder, Node, Role};
use subspace_sdk::{chain_spec, ByteSize, FarmDescription, PublicKey};
use tracing::instrument;

Expand Down Expand Up @@ -53,11 +51,13 @@ impl NodeConfig {

let (mut node, chain_spec) = match chain {
ChainConfig::Gemini3g => {
let mut node =
Node::gemini_3g().network(NetworkBuilder::gemini_3g().name(name)).dsn(
let mut node = Node::gemini_3g()
.network(NetworkBuilder::gemini_3g().name(name))
.dsn(
DsnBuilder::gemini_3g()
.provider_storage_path(provider_storage_dir_getter()),
);
)
.sync_from_dsn(true);
if enable_domains {
node = node.domain(Some(
DomainConfigBuilder::gemini_3g()
Expand Down Expand Up @@ -123,10 +123,7 @@ impl NodeConfig {

crate::utils::apply_extra_options(&node.configuration(), extra)
.context("Failed to deserialize node config")?
.build(
directory,
chain_spec
)
.build(directory, chain_spec)
.await
.into_eyre()
.wrap_err("Failed to build subspace node")
Expand Down

0 comments on commit e889fdf

Please sign in to comment.