-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP-96: Avoid storing duplicated hashes #643
Conversation
EIPS/blockhash_refactoring.md
Outdated
Let `n` be the current block number. | ||
Let `p = n - 1` be the previous block number. | ||
Let `h` be the block hash of the previous `p` block. | ||
Let `B` be the base -- the number of records keep on every level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep
-> kept
.
EIPS/blockhash_refactoring.md
Outdated
Let `h` be the block hash of the previous `p` block. | ||
Let `B` be the base -- the number of records kept on every level. | ||
|
||
The levels are numerated by `k`, starting from 0. A level block hash period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enumerated? numbered? 'numerated' isn't a word.
EIPS/blockhash_refactoring.md
Outdated
Let `B` be the base -- the number of records kept on every level. | ||
|
||
The levels are numerated by `k`, starting from 0. A level block hash period | ||
is `B<sup>k</sup>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the phrase "A level block hash period is B^k". Can you clarify?
303ce96
to
2b785df
Compare
This avoids storing duplicated hashes in EIP-96 BLOCKHASH contract by moving to-be-replaced entries from lower levels to higher levels. This also increases scope from 16777216 to 16777216 + 65536 + 256.
2b785df
to
04a163c
Compare
CC @vbuterin. |
Fixed storage update rules! |
@pirapira I never received the newer code. Where can I see it? |
I see some code in https://gitter.im/ethereum/AllCoreDevs Jul 14 18:00, 2017. @vbuterin or @Arachnid might have some even newer code. |
What is the status of this PR now? |
This is a courtesy notice to let you know that the format for EIPs has been modified slightly. If you want your draft merged, you will need to make some small changes to how your EIP is formatted:
If your PR is editing an existing EIP rather than creating a new one, this has already been done for you, and you need only rebase your PR. In addition, a continuous build has been setup, which will check your PR against the rules for EIP formatting automatically once you update your PR. This build ensures all required headers are present, as well as performing a number of other checks. Please rebase your PR against the latest master, and edit your PR to use the above format for frontmatter. For convenience, here's a sample header you can copy and adapt:
|
@chfast are you still pursuing this? Would need to be rebased/merged onto master first. |
It's quite outdated and not worth to keep it around. |
Parent EIP: #210.
This avoids storing duplicated hashes in EIP-96 BLOCKHASH contract by moving to-be-replaced entries from lower levels to higher levels. This also increases scope from 16777216 to 16777216 + 65536 + 256.