4

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?

2 Answers 2

2

Data captured by the snapshot is stored on-chain as a part of the ledger state, so all fully synchronized cardano-node instances have access to it. So, for example, when you run the cardano-cli query stake-distribution --mainnet --out-file stakeDist.out command the cardano-cli queries and outputs the current active stake data for each pool.

1
  • I think this answer is (partly) wrong: ledger state is not stored on-chain and nor are the stake snapshots that are part of it. Ledger state is kept in memory by the nodes and it is a result of folding (reducing) the blockchain. Oct 28, 2022 at 20:09
1

From my understanding, the active stake is calculated as a sum of all coins that were delegated to a particular pool. You can take a look here. enter image description here

enter image description here

1
  • So is this part of the nodes? Or is this shelly-spec-ledger part of some other system running in parallel? And if it's part of the nodes, which nodes are running this code? And who initiates the transactions/reward payouts?
    – eddex
    Jun 10, 2021 at 5:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.