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: bool
Whether to prompt user inputs interactively.
root_dir: PathBuf
The CKB root directory.
chain: String
The chain name that this node will join.
rpc_port: String
RPC port.
p2p_port: String
P2P port.
log_to_file: bool
Whether to save the logs into the log file.
log_to_stdout: bool
Whether to print the logs on the process stdout.
list_chains: bool
Asks to list available chains.
force: bool
Force 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: ScriptHashType
Block 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: CustomizeSpec
Customize 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