File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ usage similar to the way that Compute Units seek to govern CPU usage.
18
18
Tiered memory bandwidth will become a performance bottleneck as transaction
19
19
throughput and total state size increase. This proposal serves to outline
20
20
changes to the Solana protocol that would enable:
21
+
21
22
- Deterministic, easily computable and cluster-wide separation of state into
22
23
hot and cold tiers.
23
24
- A new transaction level resource requesting the transfer of state from cold
@@ -116,15 +117,17 @@ increasing record of state consumption.
116
117
Computing the block Chili Pepper clock:
117
118
118
119
``` python
119
- block_chili_pepper_clock = prev_block_chili_pepper_clock + sum (txn.requested_chili_peppers for txn in block.txns)
120
+ block_chili_pepper_clock = prev_block_chili_pepper_clock +
121
+ sum (txn.requested_chili_peppers for txn in block.txns)
120
122
```
121
123
122
124
Implemented as a 64-bit unsigned integer (uint64), this clock is updated at the
123
125
beginning of every block to reflect the total Chili Peppers requested since the
124
126
chain's genesis. This monotonically increasing value is stored in a dedicated
125
127
system variable (sysvar), ensuring that it remains accessible and immutable
126
128
throughout the blockchain's operation.
127
- The new sysvar will have identifier: ` SysvarB1ockChiliPepperC1ock111111111111111111 `
129
+ The new sysvar will have identifier:
130
+ ` SysvarB1ockChiliPepperC1ock111111111111111111 `
128
131
129
132
``` rust
130
133
struct SysvarBlockChiliPepperClock {
You can’t perform that action at this time.
0 commit comments