Skip to content

Commit 5601f21

Browse files
committed
Fix eth1 endpoints emptyness check
1 parent 33e025f commit 5601f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth1_api/src/eth1_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ impl Eth1Api {
525525
// Syncing a predefined network without proposing blocks does not require an Eth1 RPC
526526
// (except during the Merge transition).
527527
ensure!(
528-
self.endpoints.lock().await.is_empty(),
528+
!self.endpoints.lock().await.is_empty(),
529529
Error::NoEndpointsProvided
530530
);
531531

0 commit comments

Comments
 (0)