Default to EpidAttestor

This commit is contained in:
hu55a1n1 2024-02-27 12:01:18 -08:00
parent 02863d7746
commit 4984ce1413

View file

@ -25,7 +25,7 @@ use quartz_cw::state::{Config, LightClientOpts};
use quartz_proto::quartz::core_server::CoreServer; use quartz_proto::quartz::core_server::CoreServer;
use tonic::transport::Server; use tonic::transport::Server;
use crate::{attestor::MockAttestor, cli::Cli, server::CoreService}; use crate::{attestor::EpidAttestor, cli::Cli, server::CoreService};
#[tokio::main(flavor = "current_thread")] #[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
@ -47,7 +47,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
); );
Server::builder() Server::builder()
.add_service(CoreServer::new(CoreService::new(config, MockAttestor))) .add_service(CoreServer::new(CoreService::new(config, EpidAttestor)))
.serve(args.rpc_addr) .serve(args.rpc_addr)
.await?; .await?;