Skip to content

Commit 1e48f3d

Browse files
author
Tyera Eulberg
committed
Add a bit about on-chain to motivation
1 parent 63929a7 commit 1e48f3d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

proposals/0106-paritioned-epoch-rewards-pda.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,20 @@ rewards were partitioned; in fact, it does not even persist how many blocks the
3030
rewards distribution spans, so there is no way to predict how long it will take
3131
or how far through the epoch to go in finding a particular address.
3232

33+
If the partition data were stored in an on-chain account, it would be simple and
34+
low-compute-cost for a client (with a snapshot or running node) or the runtime
35+
itself to find the rewards for a particular address for any historical epoch
36+
after partitioned epoch rewards are activated.
37+
3338
## Alternatives Considered
3439

3540
An alternative to storing partition data in an on-chain account would be to
3641
record the necessary data in the ledger in some fashion. This could be a
3742
transaction that gets added to the block, a special RewardType, or metadata that
3843
gets stored on the node and then duplicated to long-term storage, like Bigtable.
3944
In fact, it is probably worthwhile to pursue this alternative as well, since it
40-
will enable finding rewards without access to snapshots or the running chain.
45+
will enable finding rewards with just the historical ledger and no access to
46+
snapshots or the running chain.
4147

4248
## New Terminology
4349

0 commit comments

Comments
 (0)