diff --git a/cashtab/src/wallet/useWallet.js b/cashtab/src/wallet/useWallet.js --- a/cashtab/src/wallet/useWallet.js +++ b/cashtab/src/wallet/useWallet.js @@ -567,34 +567,9 @@ // when new blocks are found, refresh alias prices if (msgType === 'BLK_FINALIZED') { // Handle avalanche finalized block - const { blockHeight, blockHash } = msg; + const { blockHeight } = msg; // Set chaintip height setChaintipBlockheight(blockHeight); - const HALVING_BLOCKHEIGHT = 840000; - const blocksRemaining = HALVING_BLOCKHEIGHT - blockHeight; - toast( - <BlockNotification> - <BlockNotificationLink - href={`${explorer.blockExplorerUrl}/block/${blockHash}`} - target="_blank" - rel="noopener noreferrer" - > - {`📦 ${blockHeight.toLocaleString()} finalized by Avalanche`} - </BlockNotificationLink> - {blocksRemaining > 0 && ( - <BlockNotificationDesc> - ⏰ {blocksRemaining.toLocaleString()} blocks until - eCash halving. - </BlockNotificationDesc> - )} - {blocksRemaining === 0 && ( - <BlockNotificationDesc> - 🎉🎉🎉 eCash block reward reduced by 50% 🎉🎉🎉 - </BlockNotificationDesc> - )} - </BlockNotification>, - { autoClose: blocksRemaining === 0 ? false : 5000 }, - ); if (aliasesEnabled) { try {