Skip to content

Commit 5c16f91

Browse files
ralexstokesdjrtwo
andauthored
Update EIPS/eip-4788.md
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
1 parent 4c6e3cb commit 5c16f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EIPS/eip-4788.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The first ring buffer only tracks `HISTORICAL_ROOTS_LENGTH` worth of roots and s
137137
However, this design opens the precompile to an attack where a skipped slot that has the same value modulo the ring buffer length would return an old root value,
138138
rather than the most recent one.
139139

140-
To nullify this attack, this EIP keeps track of the pair of data `(parent_beacon_block_root, timestamp)` for each index into the
140+
To nullify this attack while retaining a fixed memory footprint, this EIP keeps track of the pair of data `(parent_beacon_block_root, timestamp)` for each index into the
141141
ring buffer and verifies the timestamp matches the one originally used to write the root data when being read. Given the fixed size of storage slots (only 32 bytes), the requirement
142142
to store a pair of values necessitates two ring buffers, rather than just one.
143143

0 commit comments

Comments
 (0)