From 2c590cc9946ecc8bdc67812a9e71ec8adcdb3413 Mon Sep 17 00:00:00 2001 From: driftluo Date: Thu, 26 Oct 2023 16:59:02 +0800 Subject: [PATCH] fix: fix tx env epoch value --- core/interoperation/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/interoperation/src/lib.rs b/core/interoperation/src/lib.rs index 896895d49..4eda9522f 100644 --- a/core/interoperation/src/lib.rs +++ b/core/interoperation/src/lib.rs @@ -22,7 +22,9 @@ const GAS_TO_CYCLE_COEF: u64 = 6_000; // 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; pub const fn gas_to_cycle(gas: u64) -> u64 { gas * GAS_TO_CYCLE_COEF