Struct ckb_launcher::Launcher [−][src]
Expand description
Ckb launcher is helps to launch ckb node.
Fields
args: RunArgs
cli run
subcommand parsed args
version: Version
ckb node version
async_handle: Handle
ckb global runtime handle
Implementations
Construct new Launcher from cli args
pub fn sanitize_block_assembler_config(
&self
) -> Result<Option<BlockAssemblerConfig>, ExitCode>
pub fn sanitize_block_assembler_config(
&self
) -> Result<Option<BlockAssemblerConfig>, ExitCode>
Sanitize block assembler config
Migrate prompt
Build shared
Check whether the data already exists in the database before starting
Start chain service, return ChainController
pub fn start_network_and_rpc(
&self,
shared: &Shared,
chain_controller: ChainController,
exit_handler: &DefaultExitHandler,
miner_enable: bool,
relay_tx_receiver: Receiver<(Option<PeerIndex>, Byte32)>
) -> (NetworkController, RpcServer)
pub fn start_network_and_rpc(
&self,
shared: &Shared,
chain_controller: ChainController,
exit_handler: &DefaultExitHandler,
miner_enable: bool,
relay_tx_receiver: Receiver<(Option<PeerIndex>, Byte32)>
) -> (NetworkController, RpcServer)
Start network service and rpc servre
Auto Trait Implementations
impl !RefUnwindSafe for Launcher
impl !UnwindSafe for Launcher