Update checkStakeKeyRegistered
to use foldEpochState
#5735
+111
−41
Merged