Struct ckb_app_config::InitArgs
source · 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.