Skip to content

Commit

Permalink
Avoid acquiring another read lock to avoid potential deadlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Jul 30, 2024
1 parent 75e9348 commit 059e4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/eth1/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ impl Service {

Ok(BlockCacheUpdateOutcome {
blocks_imported,
head_block_number: self.inner.block_cache.read().highest_block_number(),
head_block_number: block_cache.highest_block_number(),
})
}
}
Expand Down

0 comments on commit 059e4d7

Please sign in to comment.