Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

simplify ethcore machine by removing redundant traits #10454

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

debris
Copy link
Collaborator

@debris debris commented Mar 6, 2019

machine engine is too complex and we don't need it to be so generic. In the following pull requests I will try to simplify it to the bare minimum

changes:

  • removed unused ScoredHeader
  • removed unused FinalizableHeader
  • removed unused WithMetadataHeader
  • removed TotalScoredHeader and moved it's implementation to ExtendedHeader
  • removed type ExtendedHeader from trait Machine. There is only one implementation of this type, so there is no reason to have it generic

@debris debris added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Mar 6, 2019
@soc1c soc1c added this to the 2.5 milestone Mar 7, 2019
@soc1c soc1c added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 7, 2019
@ascjones ascjones merged commit 23d977e into master Mar 11, 2019
@soc1c soc1c deleted the simplify_machine branch March 12, 2019 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants