Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running cargo fmt #17

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/block_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use std::{hash::Hash, marker::PhantomData};

use commit::{Commitment, Committable};
use hotshot_types::{
traits::{node_implementation::NodeType, BlockPayload, signature_key::SignatureKey},
utils::BuilderCommitment
traits::{node_implementation::NodeType, signature_key::SignatureKey, BlockPayload},
utils::BuilderCommitment,
};
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
Expand Down
7 changes: 5 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ use std::{fmt::Display, path::PathBuf};
use clap::Args;
use derive_more::From;
use futures::FutureExt;
use hotshot_types::{traits::{node_implementation::NodeType, signature_key::SignatureKey}, utils::BuilderCommitment};
use hotshot_types::{
traits::{node_implementation::NodeType, signature_key::SignatureKey},
utils::BuilderCommitment,
};
use serde::{Deserialize, Serialize};
use snafu::{ResultExt, Snafu};
use tagged_base64::TaggedBase64;
Expand Down Expand Up @@ -95,7 +98,7 @@ where
})?
.get("claim_block", |req, state| {
async move {
let hash:BuilderCommitment = req.blob_param("block_hash")?;
let hash: BuilderCommitment = req.blob_param("block_hash")?;
let signature = req.blob_param("signature")?;
state
.claim_block(&hash, &signature)
Expand Down
4 changes: 2 additions & 2 deletions src/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use async_trait::async_trait;
use hotshot_types::{
data::VidCommitment,
traits::{node_implementation::NodeType, signature_key::SignatureKey},
utils::BuilderCommitment
utils::BuilderCommitment,
};
use tagged_base64::TaggedBase64;

use crate::{
block_info::{AvailableBlockInfo, AvailableBlockData},
block_info::{AvailableBlockData, AvailableBlockInfo},
builder::BuildError,
};

Expand Down
Loading