Skip to content

Commit 71d5209

Browse files
author
Tyera Eulberg
committed
Explain why Stake Program wasn't used
1 parent 6e05a00 commit 71d5209

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

+8-1
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,16 @@ struct PartitionData {
7575
The address of this PDA will use some bytes -- to prevent griefing and namespace
7676
the PDAs -- and the rewards distribution epoch number as a little-endian u64 as
7777
seeds. Specifically: `[b"EpochRewards",b"PartitionData", &epoch.to_le_bytes()]`.
78-
The owning program should be the sysvar program id:
78+
The owning program should be the Sysvar program id:
7979
`Sysvar1111111111111111111111111111111111111`.
8080

81+
Ownership by the Stake program was also considered, but would require either
82+
extending the Stake state enum definitions or for parsers to do special handling
83+
based on data length. Meanwhile, this PDA has more in common with existing
84+
Sysvar-owned accounts: like other sysvars, it is written and controlled only by
85+
the runtime. The only difference from a traditional sysvar is the
86+
program-derived instead of a static address.
87+
8188
## Impact
8289

8390
The change in this proposal does increase the number of "forever" accounts that

0 commit comments

Comments
 (0)