Fix condition for resubscription (#1348)
This commit is contained in:
parent
e8d5d37bc1
commit
57e0b6a615
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user