Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Sep 11, 2024
1 parent f880917 commit e585436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl InMemoryState {
/// Returns the current chain head state.
pub(crate) fn head_state(&self) -> Option<Arc<BlockState>> {
let hash = *self.numbers.read().last_key_value()?.1;
self.blocks.read().get(&hash).cloned()
self.state_by_hash(hash)
}

/// Returns the pending state corresponding to the current head plus one,
Expand Down

0 comments on commit e585436

Please sign in to comment.