fn run(&self) {
        // FIXME: This just hangs and never runs the given future
        // abscissa_tokio::run(&APPLICATION, ...).unwrap();

        let config = app_config();

        let (chain_config, opts) = match self.get_chain_config_and_options(&config) {
            Err(err) => {
                status_err!("invalid options: {}", err);
                return;
            }
            Ok(result) => result,
        };

        block_on(async {
            let trust_options = TrustOptions::new(
                opts.trusted_hash,
                opts.trusted_height,
                chain_config.trusting_period,
                Default::default(),
            )
            .unwrap();

            let mut store: SledStore<TendermintChain> =
                relayer::store::persistent(format!("store_{}.db", chain_config.id)).unwrap(); // FIXME: unwrap

            store.set_trust_options(trust_options).unwrap(); // FIXME: unwrap

            status_ok!(
                chain_config.id,
                "Set trusted options: hash={} height={}",
                opts.trusted_hash,
                opts.trusted_height
            );
        });
    }
/// Initialize the light client for the given chain
Initialize the light client for the given chain
Initialize the light client for the given chain
fn run(&self) {
        // FIXME: This just hangs and never runs the given future
        // abscissa_tokio::run(&APPLICATION, ...).unwrap();
        let config = app_config();
        let (chain_config, opts) = match self.get_chain_config_and_options(&config) {
            Err(err) => {
                status_err!("invalid options: {}", err);
                return;
            }
            Ok(result) => result,
        };
        block_on(async {
            let trust_options = TrustOptions::new(
                opts.trusted_hash,
                opts.trusted_height,
                chain_config.trusting_period,
                Default::default(),
            )
            .unwrap();
            let mut store: SledStore<TendermintChain> =
                relayer::store::persistent(format!("store_{}.db", chain_config.id)).unwrap(); // FIXME: unwrap
            store.set_trust_options(trust_options).unwrap(); // FIXME: unwrap
            status_ok!(
                chain_config.id,
                "Set trusted options: hash={} height={}",
                opts.trusted_hash,
                opts.trusted_height
            );
        });
    }
fn run ( & self ) { // FIXME: This just hangs and never runs the given future // abscissa_tokio::run(&APPLICATION, ...).unwrap(); let config = app_config ( ) ; let ( chain_config , opts ) = match self . get_chain_config_and_options ( & config ) { Err ( err ) => { status_err ! ( " " err ) ; return ; } Ok ( result ) => result , } ; block_on ( async { let trust_options = TrustOptions :: new ( opts . trusted_hash , opts . trusted_height , chain_config . trusting_period , Default :: default ( ) , ) . unwrap ( ) ; let mut store : SledStore < TendermintChain > = relayer :: store :: persistent ( format ! ( " " chain_config id ) ) . unwrap ( ) ; // FIXME: unwrap store . set_trust_options ( trust_options ) . unwrap ( ) ; // FIXME: unwrap status_ok ! ( chain_config id " " opts trusted_hash opts trusted_height ) ; } ) ; }
Initialize the light client for the given chain
Initialize the light client for the given chain
&self
&self