Skip to content

Commit

Permalink
fix: hardcode the 1st halving block number
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 19, 2023
1 parent 04c1799 commit a99a725
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/Halving/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) *
Expand Down

0 comments on commit a99a725

Please sign in to comment.