From a99a7259347b0a7576bc3fe1c8c3c6d0d5e0c64b Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 20 Nov 2023 03:14:41 +0900 Subject: [PATCH] fix: hardcode the 1st halving block number --- src/pages/Halving/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Halving/index.tsx b/src/pages/Halving/index.tsx index ae3741da7..a688b5f61 100644 --- a/src/pages/Halving/index.tsx +++ b/src/pages/Halving/index.tsx @@ -76,6 +76,10 @@ export const HalvingCountdownPage = () => { }) const shareUrl = `https://x.com/share?text=${encodeURIComponent(shareText)}&hashtags=CKB%2CPoW%2CHalving` const getTargetBlockByHavingCount = (count: number) => { + // FIXME: this is a hot fix to the halving block number + if (count === 1) { + return `11487788` + } return ( EPOCHS_PER_HALVING * (statistics.epochInfo.epochLength ? parseInt(statistics.epochInfo.epochLength, 10) : 1800) *