Skip to content

Commit

Permalink
Make subspace-node not a library anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jan 8, 2024
1 parent 168438f commit 6777074
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! Subspace Node library.
pub mod chain_spec;
mod chain_spec_utils;
pub mod domain;

use crate::chain_spec;
use clap::Parser;
use sc_cli::{RunCmd, SubstrateCli};
use sc_service::ChainSpec;
Expand Down Expand Up @@ -125,7 +120,7 @@ pub enum Subcommand {

/// Run domain sub-commands.
#[clap(subcommand)]
Domain(domain::cli::Subcommand),
Domain(crate::domain::cli::Subcommand),

/// Sub-commands concerned with benchmarking.
#[cfg(feature = "runtime-benchmarks")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

//! Subspace node implementation.
mod chain_spec;
mod chain_spec_utils;
mod cli;
mod domain;

use crate::cli::{Cli, Subcommand};
use crate::domain::{DomainCli, DomainInstanceStarter, DomainSubcommand};
use cross_domain_message_gossip::GossipWorkerBuilder;
use domain_client_operator::Bootstrapper;
use domain_runtime_primitives::opaque::Block as DomainBlock;
Expand All @@ -37,8 +44,6 @@ use sp_core::traits::SpawnEssentialNamed;
use sp_io::SubstrateHostFunctions;
use sp_messenger::messages::ChainId;
use sp_wasm_interface::ExtendedHostFunctions;
use subspace_node::domain::{DomainCli, DomainInstanceStarter, DomainSubcommand};
use subspace_node::{Cli, Subcommand};
use subspace_proof_of_space::chia::ChiaTable;
use subspace_runtime::{Block, ExecutorDispatch, RuntimeApi};
use subspace_service::{DsnConfig, SubspaceConfiguration, SubspaceNetworking};
Expand Down

0 comments on commit 6777074

Please sign in to comment.