Skip to content

Commit

Permalink
fixup! rm block hash that was always empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Apr 25, 2024
1 parent 77e626d commit 0e11633
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/apps/src/lib/node/ledger/shell/finalize_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,10 @@ where
Ok(response)
}

/// Sets the metadata necessary for a new block, including
/// the hash, height, validator changes, and evidence of
/// byzantine behavior. Applies slashes if necessary.
/// Returns a bool indicating if a new epoch began and
/// the height of the new block.
/// Sets the metadata necessary for a new block, including the height,
/// validator changes, and evidence of byzantine behavior. Applies slashes
/// if necessary. Returns a bool indicating if a new epoch began and the
/// height of the new block.
fn update_state(&mut self, header: Header) -> (BlockHeight, bool) {
let height = self.state.in_mem().get_last_block_height() + 1;

Expand Down

0 comments on commit 0e11633

Please sign in to comment.