From 4d5b12c85a2488b43cff798c39e3618132e6921c Mon Sep 17 00:00:00 2001 From: Eitan Seri-Levi Date: Fri, 26 May 2023 17:48:34 +0300 Subject: [PATCH 1/3] swap write lock to read lock --- beacon_node/beacon_chain/src/block_verification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/block_verification.rs b/beacon_node/beacon_chain/src/block_verification.rs index ca4df864db9..dba38af9bdd 100644 --- a/beacon_node/beacon_chain/src/block_verification.rs +++ b/beacon_node/beacon_chain/src/block_verification.rs @@ -747,7 +747,7 @@ impl GossipVerifiedBlock { // We check this *before* we load the parent so that we can return a more detailed error. check_block_is_finalized_checkpoint_or_descendant( chain, - &chain.canonical_head.fork_choice_write_lock(), + &chain.canonical_head.fork_choice_read_lock(), &block, )?; From 2b744536442186c56c589ce7733a400e52a421ff Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Tue, 30 May 2023 11:02:13 +1000 Subject: [PATCH 2/3] Update beacon_node/beacon_chain/src/block_verification.rs --- beacon_node/beacon_chain/src/block_verification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/block_verification.rs b/beacon_node/beacon_chain/src/block_verification.rs index dba38af9bdd..4b991c3047a 100644 --- a/beacon_node/beacon_chain/src/block_verification.rs +++ b/beacon_node/beacon_chain/src/block_verification.rs @@ -747,7 +747,7 @@ impl GossipVerifiedBlock { // We check this *before* we load the parent so that we can return a more detailed error. check_block_is_finalized_checkpoint_or_descendant( chain, - &chain.canonical_head.fork_choice_read_lock(), + & chain.canonical_head.fork_choice_read_lock(), &block, )?; From 2e1802c7346f59a18b23a3dfa27d995656df5cca Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Tue, 30 May 2023 11:02:28 +1000 Subject: [PATCH 3/3] Update beacon_node/beacon_chain/src/block_verification.rs --- beacon_node/beacon_chain/src/block_verification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/block_verification.rs b/beacon_node/beacon_chain/src/block_verification.rs index 4b991c3047a..dba38af9bdd 100644 --- a/beacon_node/beacon_chain/src/block_verification.rs +++ b/beacon_node/beacon_chain/src/block_verification.rs @@ -747,7 +747,7 @@ impl GossipVerifiedBlock { // We check this *before* we load the parent so that we can return a more detailed error. check_block_is_finalized_checkpoint_or_descendant( chain, - & chain.canonical_head.fork_choice_read_lock(), + &chain.canonical_head.fork_choice_read_lock(), &block, )?;