Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cumulus/polkadot-parachain/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use crate::common::NodeExtraArgs;
use clap::{Command, CommandFactory, FromArgMatches};
use sc_cli::SubstrateCli;
use std::path::PathBuf;
Expand Down Expand Up @@ -94,6 +95,12 @@ pub struct Cli {
pub relay_chain_args: Vec<String>,
}

impl Cli {
pub(crate) fn node_extra_args(&self) -> NodeExtraArgs {
NodeExtraArgs { use_slot_based_consensus: self.experimental_use_slot_based }
}
}

#[derive(Debug)]
pub struct RelayChainCli {
/// The actual relay chain cli object.
Expand Down
Loading