pub fn spawn_init(
storage: Storage,
state: State,
chain_tip_change: ChainTipChange,
cmd_receiver: Receiver<ScanTaskCommand>,
) -> JoinHandle<Result<(), Report>>
Expand description
Initialize the scanner based on its config, and spawn a task for it.
TODO: add a test for this function.