From 8e9a91e705bfbed9c9d873f7364a7d27e7b8f8b0 Mon Sep 17 00:00:00 2001 From: Nathan F Yospe Date: Mon, 5 Feb 2024 10:41:46 -0500 Subject: [PATCH] Removing unneeded dependencies --- src/block_metadata.rs | 2 +- src/builder.rs | 10 +++------- src/data_source.rs | 5 +---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/block_metadata.rs b/src/block_metadata.rs index d6d6dae..ff7784e 100644 --- a/src/block_metadata.rs +++ b/src/block_metadata.rs @@ -9,7 +9,7 @@ pub struct HashableBlock( ::BlockPayload, <::BlockPayload as BlockPayload>::Metadata, ); -pub type BlockHash = Commitment>; +pub type BlockHash = Commitment>; impl Default for HashableBlock { fn default() -> Self { let (bp, bm) = ::BlockPayload::from_transactions(Vec::new()) diff --git a/src/builder.rs b/src/builder.rs index 020d922..0478044 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -3,19 +3,15 @@ use std::{fmt::Display, path::PathBuf}; use clap::Args; use derive_more::From; use futures::FutureExt; -use hotshot_types::{ - data::VidCommitment, - traits::{node_implementation::NodeType, signature_key::SignatureKey}, -}; +use hotshot_types::traits::{node_implementation::NodeType, signature_key::SignatureKey}; use serde::{Deserialize, Serialize}; -use snafu::{OptionExt, ResultExt, Snafu}; +use snafu::{ResultExt, Snafu}; use tagged_base64::TaggedBase64; use tide_disco::{api::ApiError, method::ReadState, Api, RequestError, StatusCode}; use crate::{ api::load_api, - block_metadata::BlockHash, - data_source::{self, BuilderDataSource}, + data_source::BuilderDataSource, }; #[derive(Args, Default)] diff --git a/src/data_source.rs b/src/data_source.rs index 664f285..df207d5 100644 --- a/src/data_source.rs +++ b/src/data_source.rs @@ -1,10 +1,7 @@ -use std::sync::Arc; - use async_trait::async_trait; -use commit::Committable; use hotshot_types::{ data::VidCommitment, - traits::{node_implementation::NodeType, signature_key::SignatureKey, BlockPayload}, + traits::{node_implementation::NodeType, signature_key::SignatureKey}, }; use tagged_base64::TaggedBase64;