Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Add Istanbul to evmc_revision#174

Merged
axic merged 2 commits intomasterfrom
istanbul
Jan 14, 2019
Merged

Add Istanbul to evmc_revision#174
axic merged 2 commits intomasterfrom
istanbul

Conversation

@axic
Copy link
Copy Markdown
Member

@axic axic commented Jan 4, 2019

Closes #134. Ref ethereum/EIPs#1679.

@axic axic requested a review from chfast January 4, 2019 14:45
EVMC_CONSTANTINOPLE = 5,
EVMC_ISTANBUL = 6,

EVMC_LATEST_REVISION = EVMC_CONSTANTINOPLE
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm still not sold that should point to the unstable version.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@chfast can you explain the reasoning behind?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay that is reasonable. Actually what convinced me is that it would be hard to keep evmc version in line with hardforks and ensure that clients are also always up to date, would we want to set latest_version always to the latest active version.

However, I think we should add a comment to it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actually, what other enums usually do is use MAX_<name>. Perhaps the best naming would be EVMC_MAX_REVISION to fulfill this role. What do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, this is mostly this case, just "latest" sounds better than "max". But it might be ok to change it to MAX for people that already know this idiom. Or just add proper documentation.

I agree that having something like "latest stable" is bad idea. EVM implementation should be responsible for bumping the default revision on their own if they have any.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, this is mostly this case, just "latest" sounds better than "max".

I think latest very much suggests it points to the latest stable. Hence my confusion all along.

@axic
Copy link
Copy Markdown
Member Author

axic commented Jan 14, 2019

@chfast ok to merge this?

@axic axic merged commit 46a2ef0 into master Jan 14, 2019
@axic axic deleted the istanbul branch January 14, 2019 15:21
@axic axic mentioned this pull request May 4, 2021
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