-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
consensus, core, tests: implement Metropolis EIP 649 #15028
Conversation
e37a868
to
43a9ddd
Compare
PostStateRoot common.Hash `json:"postStateRoot"` | ||
Env stEnv `json:"env"` | ||
Exec vmExec `json:"exec"` | ||
Logs common.UnprefixedHash `json:"logs"` |
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 logs check so we can merge.
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'll wait to see how many fail (just updates the test suite), and will disable only the failing tests (so we're not overly zealous and accidentally miss consensus issues).
This was already here, not new for this PR: https://github.com/ethereum/go-ethereum/pull/15028/files#diff-e226000964244889df127e5b44dbf192R546 : r.Div(blockReward, big32)
reward.Add(reward, r) Looks un-intuitive (reusing
|
@karalabe I noticed that the https://github.com/ethereum/go-ethereum/pull/15028/files#diff-e226000964244889df127e5b44dbf192R310 Is this on purpose? |
@devsnd OMG wow good catch! It's using |
43a9ddd
to
b872961
Compare
Just to be clear, my initial comment above was to point out that it was supposed to be one less than 3M, but then I understood that @devsnd had correctly spotted an error - so again, good catch! |
PTAL:ed, looks good to me |
Implements ethereum/EIPs#669.
The PR also pulls in the latest test suite, which among other throws out explicit log validation to implicit one via RLP(logs).
Note, some tests are failing because the consensus test suite was only partially updated to the new log format, so the non-updated ones cannot be parsed. I'll keep checking the test suite to see if there are updates to fix them.