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

Remove AuxiliaryData/AuxiliaryRequest #11533

Merged
merged 3 commits into from
Mar 3, 2020

Conversation

dvdplm
Copy link
Collaborator

@dvdplm dvdplm commented Mar 2, 2020

The only Engine that uses AuxiliaryData is AuthorityRound and it only uses Receipt. This PR removes both AuxiliaryData and AuxiliaryRequest types and changes the Engine asnd ValidatorSet traits to use just Receipt.

I am a little worried that I have misunderstood the implications of this, in particular when it comes to the Light client, so careful review of that code would be much appreciated.

Remove bytes member from AuxiliaryData
@dvdplm dvdplm changed the title Remove/simplify AuxiliaryData/AuxiliaryRequest Remove AuxiliaryData/AuxiliaryRequest Mar 3, 2020
@dvdplm dvdplm self-assigned this Mar 3, 2020
@dvdplm dvdplm requested a review from tomusdrw March 3, 2020 09:21
@dvdplm dvdplm added the A0-pleasereview 🤓 Pull request needs code review. label Mar 3, 2020
@dvdplm dvdplm marked this pull request as ready for review March 3, 2020 09:21
Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

lgtm! Weird that aux.block was not used for anything. Was it like that since the very begining?

@niklasad1
Copy link
Collaborator

niklasad1 commented Mar 3, 2020

lgtm! Weird that aux.block was not used for anything. Was it like that since the very begining?

Yes, since #6591 (I guess it depends what you mean by beginning 😄)

@ordian ordian added A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 3, 2020
@dvdplm dvdplm requested a review from niklasad1 March 3, 2020 13:28
Copy link
Collaborator

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

Sorry, missed that @tomusdrw doesn't have review rights to this repo (can somebody fix that for him?)

LGTM

@niklasad1 niklasad1 merged commit 7d54e92 into master Mar 3, 2020
@niklasad1 niklasad1 deleted the dp/chore/refactor-auxiliary-data branch March 3, 2020 14:17
dvdplm added a commit that referenced this pull request Mar 3, 2020
* master:
  Remove AuxiliaryData/AuxiliaryRequest (#11533)
  [journaldb]: cleanup (#11534)
  Remove references to parity-ethereum (#11525)
  Drop IPFS support (#11532)
ordian added a commit that referenced this pull request Mar 6, 2020
* master:
  ethcore: cleanup after #11531 (#11546)
  license update (#11543)
  Less cloning when importing blocks (#11531)
  Github Actions (#11528)
  Fix Alpine Dockerfile (#11538)
  Remove AuxiliaryData/AuxiliaryRequest (#11533)
  [journaldb]: cleanup (#11534)
ordian added a commit that referenced this pull request Mar 10, 2020
* master:
  Code cleanup in the sync module (#11552)
  initial cleanup (#11542)
  Warn if genesis constructor revert (#11550)
  ethcore: cleanup after #11531 (#11546)
  license update (#11543)
  Less cloning when importing blocks (#11531)
  Github Actions (#11528)
  Fix Alpine Dockerfile (#11538)
  Remove AuxiliaryData/AuxiliaryRequest (#11533)
  [journaldb]: cleanup (#11534)
  Remove references to parity-ethereum (#11525)
  Drop IPFS support (#11532)
  chain-supplier: fix warning reporting for GetNodeData request (#11530)
  Faster kill_garbage (#11514)
  [EngineSigner]: don't sign message with only zeroes (#11524)
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