Skip to content

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

Open
wants to merge 28 commits into
base: tm_w3q
Choose a base branch
from
Open

EthStorage Mining #131

wants to merge 28 commits into from

Conversation

ping-ke
Copy link

@ping-ke ping-ke commented Mar 23, 2023

@ping-ke
Copy link
Author

ping-ke commented Apr 18, 2023

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) {
Copy link

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?

Copy link
Author

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.

Copy link
Author

@ping-ke ping-ke Apr 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants