-
Notifications
You must be signed in to change notification settings - Fork 75
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
Bug/etcm 797 #974
Bug/etcm 797 #974
Conversation
… from connected peers
src/main/scala/io/iohk/ethereum/consensus/pow/EthashUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/io/iohk/ethereum/consensus/pow/EthashDAGManager.scala
Outdated
Show resolved
Hide resolved
src/main/scala/io/iohk/ethereum/jsonrpc/DebugJsonMethodsImplicits.scala
Outdated
Show resolved
Hide resolved
val seedEpoch0 = ByteStringUtils.string2hash("0000000000000000000000000000000000000000000000000000000000000000") | ||
val seedEpoch1 = ByteStringUtils.string2hash("290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563") | ||
val seedEpoch382 = ByteStringUtils.string2hash("d3d0aa11197dcdcfcb3ad3c73d415af47299bddb47fda6081d31d9dd06462f6a") | ||
val seedEpoch383 = ByteStringUtils.string2hash("bf532874eb434842e7a3e4acd113fe454541651872760d9b95d11d7f90ca25dc") |
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.
where did these hashes come from? maybe this would be a good inspiration https://github.com/iquidus/ecip-1099-data ?
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.
These are the seeds that correspond to the blocks, calculated with the Mantis code found to be working properly (valid blocks are valid.)
But the strings themselves are not so interesting for the purposes of this bug, just that they are the same across different blocks within a (ECIP-1099) epoch. (For the implementation itself the hashes are important of course.)
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.
(Also, the hash being all zeroes for epoch 0 is a good sign?)
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.
Please remove the "debug_" endpoint. We can groom it and bring it in properly.
… number) from connected peers" This reverts commit 48b39b5.
Description
https://jira.iohk.io/browse/ETCM-797
Proposed Solution
calculate start epoch block, and calculate seed based on the epoch length and start epoch block