Fix condition for resubscription (#1348)

This commit is contained in:
Pawan Dhananjay 2020-07-11 06:02:19 +05:30 committed by GitHub
parent e8d5d37bc1
commit 57e0b6a615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,7 @@ impl DutiesStore {
duties.compute_selection_proof(validator_store)?; duties.compute_selection_proof(validator_store)?;
// Determine if a re-subscription is required. // 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. // Replace the existing duties.
*known_duties = duties; *known_duties = duties;