Skip to content

Commit

Permalink
Fix eth1 endpoints emptyness check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumas committed Oct 30, 2024
1 parent 33e025f commit 5601f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth1_api/src/eth1_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ impl Eth1Api {
// Syncing a predefined network without proposing blocks does not require an Eth1 RPC
// (except during the Merge transition).
ensure!(
self.endpoints.lock().await.is_empty(),
!self.endpoints.lock().await.is_empty(),
Error::NoEndpointsProvided
);

Expand Down

0 comments on commit 5601f21

Please sign in to comment.