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
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<TxVerificationResult>
) -> (NetworkController, RpcServer)
pub fn start_network_and_rpc(
&self,
shared: &Shared,
chain_controller: ChainController,
exit_handler: &DefaultExitHandler,
miner_enable: bool,
relay_tx_receiver: Receiver<TxVerificationResult>
) -> (NetworkController, RpcServer)
Start network service and rpc serve
Auto Trait Implementations
impl !RefUnwindSafe for Launcher
impl !UnwindSafe for Launcher
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more