Skip to content

Commit

Permalink
fix: fix tx env epoch value
Browse files Browse the repository at this point in the history
  • Loading branch information
driftluo committed Oct 26, 2023
1 parent 9a0bdbd commit ebac470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/interoperation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ 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
Expand Down

0 comments on commit ebac470

Please sign in to comment.