From 57e0b6a6155f352516482f9533ae33c346efbab3 Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Sat, 11 Jul 2020 06:02:19 +0530 Subject: [PATCH] Fix condition for resubscription (#1348) --- validator_client/src/duties_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator_client/src/duties_service.rs b/validator_client/src/duties_service.rs index b555b4907..403c384a4 100644 --- a/validator_client/src/duties_service.rs +++ b/validator_client/src/duties_service.rs @@ -285,7 +285,7 @@ impl DutiesStore { duties.compute_selection_proof(validator_store)?; // Determine if a re-subscription is required. - let should_resubscribe = duties.subscription_eq(known_duties); + let should_resubscribe = !duties.subscription_eq(known_duties); // Replace the existing duties. *known_duties = duties;