Skip to content

Commit

Permalink
remove potential deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Oct 7, 2024
1 parent ec7db61 commit 101bf81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon_node/eth1/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,11 @@ impl Service {

/// Returns the number of deposits with valid signatures that have been observed.
pub fn get_valid_signature_count(&self) -> Option<usize> {
let highest_safe_block = self.highest_safe_block()?;
self.deposits()
.read()
.cache
.get_valid_signature_count(self.highest_safe_block()?)
.get_valid_signature_count(highest_safe_block)
}

/// Returns the number of deposits with valid signatures that have been observed, without
Expand Down

0 comments on commit 101bf81

Please sign in to comment.