Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2829] Account versioning #1612

Merged
merged 7 commits into from
Jul 11, 2019
Merged

[PAN-2829] Account versioning #1612

merged 7 commits into from
Jul 11, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jun 26, 2019

PR description

Initial versioning code. Main hook is that setCode() in MutableAccount now
requires a version (currently a long for performance reasons).

Reference tests all pass (hence the WorldStateMock if block) and
GenesisStateTest has an explicit version test now.

Fixed Issue(s)

PAN-2829

shemnon added 5 commits June 26, 2019 11:10
Initial versioning code.  Main hook is that setCode() in MutableAccount now
requires a version (currently a long for performance reasons).

Reference tests all pass (hence the WorldStateMock if block) and
GenesisStateTest has an explicit version test now.
# Conflicts:
#	ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetProtocolSpecs.java
In the future if the versions become sparse or large we will create a "proxy"
version index by putting the standardized indexes into an enum and using
the enum ordinal instead.
@shemnon shemnon marked this pull request as ready for review July 11, 2019 00:45
Copy link
Contributor

@AbdelStark AbdelStark left a comment

Choose a reason for hiding this comment

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

Looks good to me. (few comments left)

@shemnon shemnon merged commit c0f9828 into PegaSysEng:master Jul 11, 2019
@shemnon shemnon deleted the EIP1702 branch July 11, 2019 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants