This question is related to my previous question: When are the snapshots for the active stake in an epoch taken?
The active stake of a pool is used to calculate the rewards. What kind of system calculates the active stake of a stake pool? Is this done by the Cardano nodes or by the stake pools themselves or some other part of the Cardano ecosystem?