Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/hotshot/new-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ async-lock = { workspace = true }
async-trait = { workspace = true }
bon = { workspace = true }
committable = { workspace = true }
derive_more = { workspace = true }
futures = { workspace = true }
hotshot = { workspace = true }
hotshot-example-types = { workspace = true }
hotshot-testing = { workspace = true }
hotshot-types = { workspace = true }
serde = { workspace = true }
serde_bytes = { workspace = true }
thiserror = { workspace = true }
time = { workspace = true }
tokio = { workspace = true }
Expand Down
8 changes: 5 additions & 3 deletions crates/hotshot/new-protocol/src/block.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
use hotshot_types::{
data::{EpochNumber, QuorumProposal2, ViewNumber},
data::{EpochNumber, ViewNumber},
traits::node_implementation::NodeType,
};

use crate::message::Proposal;

#[derive(Clone, Eq, PartialEq, Debug)]
pub struct BlockAndHeaderRequest<T: NodeType> {
pub view: ViewNumber,
pub epoch: EpochNumber,
pub parent_proposal: QuorumProposal2<T>,
pub parent_proposal: Proposal<T>,
}

#[derive(Clone, Eq, PartialEq, Debug)]
pub struct BlockRequest<T: NodeType> {
pub view: ViewNumber,
pub parent_proposal: QuorumProposal2<T>,
pub parent_proposal: Proposal<T>,
pub epoch: EpochNumber,
}
Loading
Loading