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

fix: fix tx env epoch value #1503

Closed
wants to merge 1 commit into from
Closed

fix: fix tx env epoch value #1503

wants to merge 1 commit into from

Conversation

driftluo
Copy link
Contributor

What this PR does / why we need it?

This PR tx env epoch value

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

@driftluo driftluo requested a review from a team as a code owner October 26, 2023 09:00
@driftluo driftluo force-pushed the fix-ckb-vm-epoch-value branch from f8dc96e to ebac470 Compare October 26, 2023 09:06
@driftluo driftluo force-pushed the fix-ckb-vm-epoch-value branch from ebac470 to 2c590cc Compare October 26, 2023 09:10
@Flouse Flouse requested review from yangby-cryptape and removed request for Simon-Tl October 26, 2023 09:25
const CKB2023_DISABLED_EPOCH: u64 = 0x53c007f0020c8;
// The value must be less than the epoch of the 2023 hardfork and greater than
// the epoch of the 2021 hardfork
const CKB2023_DISABLED_EPOCH: u64 = 0x20c8;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I didn’t catch your meaning.

Where does CKB2023_DISABLED_NUMBER and CKB2023_DISABLED_EPOCH come from?

References

Copy link
Contributor Author

Choose a reason for hiding this comment

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

10_976_708 this existing block must be activated in 2021 but not activated in 2023

Comment on lines 22 to +27
// The following information is from CKB block [10976708](https://explorer.nervos.org/block/10976708)
// which is CKB2023 disabled.
const CKB2023_DISABLED_NUMBER: u64 = 10_976_708;
const CKB2023_DISABLED_EPOCH: u64 = 0x53c007f0020c8;
// The value must be less than the epoch of the 2023 hardfork and greater than
// the epoch of the 2021 hardfork
const CKB2023_DISABLED_EPOCH: u64 = 0x20c8;
Copy link
Contributor

@Flouse Flouse Oct 30, 2023

Choose a reason for hiding this comment

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

Question

This is the definition for CKB mainnet.
What about CKB testnet?

@driftluo
Copy link
Contributor Author

driftluo commented Nov 9, 2023

Features that will be discarded and do not need to be changed

@driftluo driftluo closed this Nov 9, 2023
@driftluo driftluo deleted the fix-ckb-vm-epoch-value branch November 9, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants