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

[ETCM-25/26] enable byzantium and constantinople on atlantis/agharta #643

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

KonradStaniec
Copy link
Contributor

No description provided.

@KonradStaniec KonradStaniec requested a review from mmrozek August 25, 2020 11:00
@KonradStaniec KonradStaniec force-pushed the etcm-25-enable-features branch from 2560382 to 6a7e74c Compare August 25, 2020 11:49
Copy link
Contributor

@mmrozek mmrozek left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -131,14 +131,24 @@ class VM[W <: WorldStateProxy[W, S], S <: Storage[S]] extends Logger {
private def invalidCallResult(context: PC): PR =
ProgramResult(ByteString.empty, context.startGas, context.world, Set(), Nil, Nil, 0, Some(InvalidCall))


private def exceedsMaxContractSize(context: PC, config: EvmConfig, contractCode: ByteString): Boolean = {
val maxCodeSizeExceeded = config.maxCodeSize.exists(codeSizeLimit => contractCode.size > codeSizeLimit)
Copy link
Contributor

Choose a reason for hiding this comment

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

Very minor - it could be lazy. We don't need to check it if we are before the fork

@KonradStaniec KonradStaniec merged commit 1259ef7 into phase/etc_forks Aug 25, 2020
@KonradStaniec KonradStaniec deleted the etcm-25-enable-features branch August 25, 2020 14:49
@ntallar ntallar mentioned this pull request Sep 17, 2020
13 tasks
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.

2 participants