Struct ckb_app_config::InitArgs [−][src]
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.