-
Notifications
You must be signed in to change notification settings - Fork 897
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
EIP-3860 Initcode Size Reference Test fixes #4911
Conversation
Fix corner cases around initcode size checking in reference tests. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty straight forward. Just a couple of questions a minor suggestion
evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractCreateOperation.java
Show resolved
Hide resolved
...um/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetTransactionValidator.java
Outdated
Show resolved
Hide resolved
evm/src/main/java/org/hyperledger/besu/evm/operation/CreateOperation.java
Show resolved
Hide resolved
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
evm/src/test/java/org/hyperledger/besu/evm/operations/Create2OperationTest.java
Outdated
Show resolved
Hide resolved
…perationTest.java Co-authored-by: Simon Dudley <simon.l.dudley@hotmail.com> Signed-off-by: Danno Ferrin <danno.ferrin@shemnon.com>
TransactionType.ACCESS_LIST, | ||
TransactionType.EIP1559), | ||
quorumCompatibilityMode, | ||
SHANGHAI_INIT_CODE_SIZE_LIMIT)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shemnon I just spotted this...should it be
configContractSizeLimit.orElse(SHANGHAI_INIT_CODE_SIZE_LIMIT)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. We are limiting initcocde, Which is twice the contract size limit. initcode and contract code have two different limits.
* EIP-3860 Initcode Size Reference Test fixes Fix corner cases around initcode size checking in reference tests. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* EIP-3860 Initcode Size Reference Test fixes Fix corner cases around initcode size checking in reference tests. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
* EIP-3860 Initcode Size Reference Test fixes Fix corner cases around initcode size checking in reference tests. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
PR description
Fix corner cases around initcode size checking in reference tests.
Fixed Issue(s)
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog