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

feat: new hardfork with ckb vm #1502

Closed
wants to merge 1 commit into from
Closed

feat: new hardfork with ckb vm #1502

wants to merge 1 commit into from

Conversation

driftluo
Copy link
Contributor

What this PR does / why we need it?

This PR enable a new hardfork with ckb vm

What is the impact of this PR?

No Breaking Change

PR relation:

  • Ref #
CI Settings

CI Usage

Tip: Check the CI you want to run below, and then comment /run-ci.

CI Switch

  • Web3 Compatible Tests
  • OCT 1-5 And 12-15
  • OCT 6-10
  • OCT 11
  • OCT 16-19
  • v3 Core Tests

CI Description

CI Name Description
Web3 Compatible Test Test the Web3 compatibility of Axon
v3 Core Test Run the compatibility tests provided by Uniswap V3
OCT 1-5 | 6-10 | 11 | 12-15 | 16-19 Run the compatibility tests provided by OpenZeppelin

),
};

(Arc::new(Consensus::default()), Arc::new(env))
Copy link
Contributor

Choose a reason for hiding this comment

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

Consensus includes hardfork_switch so it should be different depending on hardfork?

Copy link
Contributor Author

@driftluo driftluo Oct 26, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this depend on both consensus.hardfork_switch() and tx_env?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

consensus.hardfork_switch() confirms the activated epoch, this is a fixed value
tx_env confirms the epoch the transaction is in. It belongs to the new environment if it is greater than the epoch in hardfork_switch.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK this works because Consensus::default() uses mirana hardfork switches. But it's kind of undocumented. I'm not sure whether it'll change in later versions of ckb.

@driftluo
Copy link
Contributor Author

The upgrade of ckb vm will no longer be achieved through hardfork

@driftluo driftluo closed this Oct 31, 2023
@driftluo driftluo deleted the hardfork-with-ckb-vm branch October 31, 2023 03:38
@Flouse Flouse added t:feature and removed feature labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants