Skip to content
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

core, ethclient: implement Metropolis EIP 98 #14750

Merged
merged 3 commits into from
Jul 17, 2017

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jul 4, 2017

Implements ethereum/EIPs#98.


Note, reviewers: please think over the statedb.Finalize aspect, as it looks "simple", but it needs to ensure correct cleanup of state objects.

r.PostState, r.CumulativeGasUsed, r.Bloom, r.Logs = receipt.PostState, receipt.CumulativeGasUsed, receipt.Bloom, receipt.Logs
return nil
// Attempt to deserialize into a Metropolis format
var metro metropolisReceiptRLP
Copy link
Contributor

@fjl fjl Jul 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use element count to distinguish the formats.

list, _, _ := rlp.SplitList(raw)
count, err := rlp.CountValues(content)

@karalabe
Copy link
Member Author

karalabe commented Jul 4, 2017

@fjl PTAL

@karalabe karalabe mentioned this pull request Jul 4, 2017
8 tasks
@karalabe karalabe added the ready label Jul 14, 2017
@fjl fjl merged commit a56f3dc into ethereum:master Jul 17, 2017
@karalabe karalabe added this to the 1.7.0 milestone Jul 17, 2017
markya0616 pushed a commit to markya0616/go-ethereum that referenced this pull request Aug 17, 2017
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.

4 participants