-
Notifications
You must be signed in to change notification settings - Fork 2
EthStorage Mining #131
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
base: tm_w3q
Are you sure you want to change the base?
EthStorage Mining #131
Conversation
…y proof to use MinTree
…to tm_w3q_sstorage_miner
This code has been reviewed, and deployed to test https://testnet.web3q.io:8545/, and do some integration tests. There are still 2 bugs remaining, trace them as follow: put func of system contract 03330001 do not return correct data., ethstorage mine tranction will fail with "execution reverted" |
@@ -141,7 +141,7 @@ func (g *Governance) NextValidatorsAndPowersAt(remoteChainNumber uint64, hash co | |||
} | |||
|
|||
// getValidatorsAndPowersFromContract get next validators from contract | |||
func (g *Governance) getValidatorsAndPowersFromContract(blockHash common.Hash) ([]common.Address, []uint64, error) { |
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 am not sure why we need this change here?
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.
as the Ethereum header change, our etherclient cannot get the correct hash, so when we get validators and powers from the contract from Ethereum, it will fail. so change the getValidatorsAndPowersFromContract using a hash to block number.
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.
can move out this change and create an issue to check this issue.
related design is added to the following doc:
https://docs.google.com/document/d/1ePI2Bqj069ffKV9eTYbRHCtX5ljyxH3P1BKtU3SGgWU/edit#