chronicle

Function run_chronicle

Source
pub async fn run_chronicle(
    config: ChronicleConfig,
    substrate: Arc<dyn Runtime>,
    admin: Sender<AdminMsg>,
) -> Result<()>
Expand description

Runs the Chronicle application.

This function initializes the necessary components and starts the main application loop for the Chronicle service. It sets up the network, task spawner, and various workers needed to process tasks and communicate with the blockchain.

§Arguments

  • config - Configuration for the Chronicle application.
  • network - Network instance.
  • net_request - Stream of network requests.
  • substrate - Substrate runtime instance.

§Returns

  • Result<()> - Returns an empty result on success, or an error on failure.