Skip to content

Commit

Permalink
chore: 2nd hardfork mainnet activation params
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsoledad committed Feb 19, 2025
1 parent 57defa5 commit bff4ada
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1694,8 +1694,8 @@ Response
{ "rfc": "0032", "epoch_number": "0x1526" },
{ "rfc": "0036", "epoch_number": "0x0" },
{ "rfc": "0038", "epoch_number": "0x0" },
{ "rfc": "0048", "epoch_number": null },
{ "rfc": "0049", "epoch_number": null }
{ "rfc": "0048", "epoch_number": "0x3005" },
{ "rfc": "0049", "epoch_number": "0x3005" }
],
"id": "main",
"initial_primary_epoch_reward": "0x71afd498d000",
Expand Down
4 changes: 2 additions & 2 deletions rpc/src/module/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ pub trait ChainRpc {
/// { "rfc": "0032", "epoch_number": "0x1526" },
/// { "rfc": "0036", "epoch_number": "0x0" },
/// { "rfc": "0038", "epoch_number": "0x0" },
/// { "rfc": "0048", "epoch_number": null },
/// { "rfc": "0049", "epoch_number": null }
/// { "rfc": "0048", "epoch_number": "0x3005" },
/// { "rfc": "0049", "epoch_number": "0x3005" }
/// ],
/// "id": "main",
/// "initial_primary_epoch_reward": "0x71afd498d000",
Expand Down
7 changes: 5 additions & 2 deletions util/constant/src/hardfork/mainnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ pub const RFC0028_RFC0032_RFC0033_RFC0034_START_EPOCH: u64 = 5414;
// pub const CKB2021_START_EPOCH: u64 = 5414;
pub const CKB2021_START_EPOCH: u64 = 0;

/// hardcode ckb2023 epoch
pub const CKB2023_START_EPOCH: u64 = u64::MAX;
/// 2025-07-01 06:32:53 utc
/// | hash | number | timestamp | epoch |
/// | 0xf959f70e487bc3073374d148ef0df713e6060542b84d89a3318bf18edbacdf94 | 15,414,776 | 1739773973982 | 11,489 (1800/1800)|
/// 1739773973982 + 804 * (4 * 60 * 60 * 1000) = 1751351573982 2024-10-25 05:43 utc
pub const CKB2023_START_EPOCH: u64 = 12_293;

0 comments on commit bff4ada

Please sign in to comment.