GRANDPA Pause/Resume
have not been implemented in the substrate client code, therefore I would hold on implementing those for now.
To answer your question though I think that onlyWe need to track multiple pending Pause / Resume
signals per-fork, like we do for standard changes. Otherwise if finality is halted and there's a singlepending Pause / Resume
messagesignal, a further one being issued would needmake it impossible to be tracked per fork since these would be enacted based onimport such a block depth (similar to forced changes) rather than based on finalityand halt block production as well. Since these wouldWe might be enacted based onable to get away with just refusing to import a block depth I think they wouldn't affect thethat triggers a next_changePause
rulewhile there is still a pending one, but e.g. if the pause is being triggered by an automated process (governance), then this could lead to the timedeath loop explained earlier. It's also important to make sure we don't enact a Resume
(on block depth) before the corresponding Pause
been enacted (on finality). In that case next_change
should bealso consider the earliest pending Pause
when voting to finalize that block we would have already enacted the pause.
(Edited my original response significantly in light of your comment.)