Skip to content

Commit

Permalink
Removing unneeded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nyospe committed Feb 5, 2024
1 parent d1b0cf5 commit 8e9a91e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/block_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct HashableBlock<I: NodeType>(
<I as NodeType>::BlockPayload,
<<I as NodeType>::BlockPayload as BlockPayload>::Metadata,
);
pub type BlockHash<I: NodeType> = Commitment<HashableBlock<I>>;
pub type BlockHash<I> = Commitment<HashableBlock<I>>;
impl<I: NodeType> Default for HashableBlock<I> {
fn default() -> Self {
let (bp, bm) = <I as NodeType>::BlockPayload::from_transactions(Vec::new())
Expand Down
10 changes: 3 additions & 7 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
5 changes: 1 addition & 4 deletions src/data_source.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 8e9a91e

Please sign in to comment.