pub async fn run_consensus(
        self,
        ctx: &ctx::Ctx,
        client: Box<DynClient<L2>>,
        cfgs: ConfigSet,
    ) -> anyhow::Result<()> {
        en::EN {
            pool: self.pool,
            client,
            sync_state: self.sync_state.clone(),
        }
        .run(
            ctx,
            self.actions_sender,
            cfgs.config,
            cfgs.secrets,
            cfgs.net.build_version,
        )
        .await
    }
Runs consensus node for the external node.
core/node/consensus/src/testonly.rs