Skip to content

Commit

Permalink
prepare for sequencer release (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron authored Mar 29, 2024
1 parent 3d2abb5 commit 632977c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/examples/infra/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,9 @@ fn webserver_network_from_config<TYPES: NodeType, NetworkVersion: StaticVersionT
/// # Panics
/// If unable to create bootstrap nodes multiaddres or the libp2p config is invalid
async fn libp2p_network_from_config<TYPES: NodeType>(
config: NetworkConfig<TYPES::SignatureKey, TYPES::ElectionConfigType>,
mut config: NetworkConfig<TYPES::SignatureKey, TYPES::ElectionConfigType>,
pub_key: TYPES::SignatureKey,
) -> Libp2pNetwork<Message<TYPES>, TYPES::SignatureKey> {
let mut config = config;
let libp2p_config = config
.libp2p_config
.take()
Expand Down
7 changes: 6 additions & 1 deletion crates/types/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,15 @@ impl<TYPES: NodeType> Leaf<TYPES> {
pub fn set_parent_commitment(&mut self, commitment: Commitment<Self>) {
self.parent_commitment = commitment;
}
/// The block header contained in this leaf.
/// Get a reference to the block header contained in this leaf.
pub fn get_block_header(&self) -> &<TYPES as NodeType>::BlockHeader {
&self.block_header
}

/// Get a mutable reference to the block header contained in this leaf.
pub fn get_block_header_mut(&mut self) -> &mut <TYPES as NodeType>::BlockHeader {
&mut self.block_header
}
/// Fill this leaf with the block payload.
///
/// # Errors
Expand Down

0 comments on commit 632977c

Please sign in to comment.