Skip to content

Commit

Permalink
Fix build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
shenkeyao committed Nov 15, 2023
1 parent 98bcca0 commit 38c42aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/hotshot/examples/infra/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ pub trait RunDA<
/// get the anchored view
/// Note: sequencing leaf does not have state, so does not return state
async fn initialize_state_and_hotshot(&self) -> SystemContextHandle<TYPES, NODE> {
let genesis_block = TYPES::BlockPayload::genesis();
let initializer = hotshot::HotShotInitializer::<TYPES>::from_genesis()
.expect("Couldn't generate genesis block");

Expand Down
3 changes: 2 additions & 1 deletion crates/types/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,12 @@ impl<TYPES: NodeType> Display for Leaf<TYPES> {

impl<TYPES: NodeType> Leaf<TYPES> {
/// Create a new leaf from its components.
#[must_use]
pub fn genesis() -> Self {
let (block_header, block_payload, _) = TYPES::BlockHeader::genesis();
Self {
view_number: TYPES::Time::genesis(),
justify_qc: QuorumCertificate2::<TYPES, Self>::genesis(),
justify_qc: QuorumCertificate2::<TYPES>::genesis(),
parent_commitment: fake_commitment(),
block_header,
block_payload: Some(block_payload),
Expand Down

0 comments on commit 38c42aa

Please sign in to comment.