Skip to content

Commit

Permalink
SIMD-0197: more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
topointon-jump authored and jumpsiegel committed Jan 14, 2025
1 parent e1b0a64 commit bf9b232
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions proposals/0197-chilli-peppers.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ usage similar to the way that Compute Units seek to govern CPU usage.
Tiered memory bandwidth will become a performance bottleneck as transaction
throughput and total state size increase. This proposal serves to outline
changes to the Solana protocol that would enable:

- Deterministic, easily computable and cluster-wide separation of state into
hot and cold tiers.
- A new transaction level resource requesting the transfer of state from cold
Expand Down Expand Up @@ -116,15 +117,17 @@ increasing record of state consumption.
Computing the block Chili Pepper clock:

```python
block_chili_pepper_clock = prev_block_chili_pepper_clock + sum(txn.requested_chili_peppers for txn in block.txns)
block_chili_pepper_clock = prev_block_chili_pepper_clock +
sum(txn.requested_chili_peppers for txn in block.txns)
```

Implemented as a 64-bit unsigned integer (uint64), this clock is updated at the
beginning of every block to reflect the total Chili Peppers requested since the
chain's genesis. This monotonically increasing value is stored in a dedicated
system variable (sysvar), ensuring that it remains accessible and immutable
throughout the blockchain's operation.
The new sysvar will have identifier: `SysvarB1ockChiliPepperC1ock111111111111111111`
The new sysvar will have identifier:
`SysvarB1ockChiliPepperC1ock111111111111111111`

```rust
struct SysvarBlockChiliPepperClock {
Expand Down

0 comments on commit bf9b232

Please sign in to comment.