pub struct InitArgs {Show 15 fields
pub interactive: bool,
pub root_dir: PathBuf,
pub chain: String,
pub rpc_port: String,
pub p2p_port: String,
pub log_to_file: bool,
pub log_to_stdout: bool,
pub list_chains: bool,
pub force: bool,
pub block_assembler_code_hash: Option<String>,
pub block_assembler_args: Vec<String>,
pub block_assembler_hash_type: ScriptHashType,
pub block_assembler_message: Option<String>,
pub import_spec: Option<String>,
pub customize_spec: CustomizeSpec,
}Expand description
Parsed command line arguments for ckb init.
Fields§
§interactive: boolWhether to prompt user inputs interactively.
root_dir: PathBufThe CKB root directory.
chain: StringThe chain name that this node will join.
rpc_port: StringRPC port.
p2p_port: StringP2P port.
log_to_file: boolWhether to save the logs into the log file.
log_to_stdout: boolWhether to print the logs on the process stdout.
list_chains: boolAsks to list available chains.
force: boolForce file overwriting.
block_assembler_code_hash: Option<String>Block assembler lock script code hash.
block_assembler_args: Vec<String>Block assembler lock script args.
block_assembler_hash_type: ScriptHashTypeBlock assembler lock script hash type.
block_assembler_message: Option<String>Block assembler cellbase transaction message.
import_spec: Option<String>Import the spec file.
When this is set to -, the spec file is imported from stdin and the file content must be
encoded by base64. Otherwise it must be a path to the spec file.
The spec file will be saved into specs/{CHAIN}.toml, where CHAIN is the chain name.
customize_spec: CustomizeSpecCustomize parameters for chain spec or not.
Only works for dev chains.
Auto Trait Implementations§
impl Freeze for InitArgs
impl RefUnwindSafe for InitArgs
impl Send for InitArgs
impl Sync for InitArgs
impl Unpin for InitArgs
impl UnwindSafe for InitArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more