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

state_processor: remove the whitelist deployer check in applyTransaction #363

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Oct 3, 2023

We need to update the check in applyTransaction to support the whitelist deployer version 2. However, since we move the whitelist deployer check to the later Create operation to cover both CREATE2/CREATE opcode and contract deploy transaction, this check is not necessary anymore.

Does removing this check create backward incompatibility (cannot sync from genesis)?
The backward incompatability happens only when the old transactions does not pass the check and when running with newer Ronin version, it passes because we remove the check. However, this is not the case here, as the error in applyTransaction means the transaction is not included into the block.

We need to update the check in applyTransaction to support the whitelist
deployer version 2. However, since we move the whitelist deployer check to the
later Create operation to cover both CREATE2/CREATE opcode and contract deploy
transaction, this check is not necessary anymore.

Does removing this check create backward incompatibility (cannot sync from
genesis)?
The backward incompatability happens only when the old transactions does not
pass the check and when running with newer Ronin version, it passes because we
remove the check. However, this is not the case here, as the error in
applyTransaction means the transaction is not included into the block.
@minh-bq minh-bq requested review from DNK90 and huyngopt1994 October 3, 2023 07:12
@minh-bq minh-bq merged commit 9589f03 into axieinfinity:master Oct 4, 2023
@minh-bq minh-bq deleted the fix/state-whitelist-deployer branch October 4, 2023 04:27
minh-bq added a commit that referenced this pull request Oct 4, 2023
…ion (#363)

We need to update the check in applyTransaction to support the whitelist
deployer version 2. However, since we move the whitelist deployer check to the
later Create operation to cover both CREATE2/CREATE opcode and contract deploy
transaction, this check is not necessary anymore.

Does removing this check create backward incompatibility (cannot sync from
genesis)?
The backward incompatability happens only when the old transactions does not
pass the check and when running with newer Ronin version, it passes because we
remove the check. However, this is not the case here, as the error in
applyTransaction means the transaction is not included into the block.
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
…ion (axieinfinity#363)

We need to update the check in applyTransaction to support the whitelist
deployer version 2. However, since we move the whitelist deployer check to the
later Create operation to cover both CREATE2/CREATE opcode and contract deploy
transaction, this check is not necessary anymore.

Does removing this check create backward incompatibility (cannot sync from
genesis)?
The backward incompatability happens only when the old transactions does not
pass the check and when running with newer Ronin version, it passes because we
remove the check. However, this is not the case here, as the error in
applyTransaction means the transaction is not included into the block.
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