Skip to content

Commit 63929a7

Browse files
author
Tyera Eulberg
committed
Expand write-lock detail
1 parent 71d5209 commit 63929a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,14 @@ instead of scanning an unknown number of blocks.
9797

9898
## Security Considerations
9999

100-
Like traditional sysvars, the new accounts should only be loadable as read-only.
101-
How this would be accomplished depends on the outcome of SIMD 0105.
100+
Like traditional sysvars, the partitioned-rewards data PDAs should only be
101+
loadable as read-only. Read-write loads cannot interfere with instantiation of
102+
these accounts, since the runtime writes to sysvars before any write locks can
103+
be taken; however, they could make it difficult for users to read from the
104+
account on-chain. SIMD 0105 defines a method for demoting sysvar write locks,
105+
but depends on a list of static addresses. If write-lock handling of dynamically
106+
addressed sysvars like these PDAs seems needed in the future, a new proposal
107+
should be introduced.
102108

103109
## Backwards Compatibility
104110

0 commit comments

Comments
 (0)