Skip to content

Commit

Permalink
Merge pull request #1389 from nervosnetwork/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY authored Nov 20, 2023
2 parents bab642e + 1e84978 commit 0d5ecbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"halving": {
"congratulations": "Congratulations",
"the": "the",
"actived": "is atived on block",
"actived": "is activated on block",
"halving": "halving",
"next": "next",
"and": "and",
Expand Down
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 0d5ecbf

Please sign in to comment.