Changeset View
Changeset View
Standalone View
Standalone View
_includes/upgrade-notice.html
<script> | <script> | ||||
function updateUpgradeNotice() { | function updateUpgradeNotice() { | ||||
const activationTime = 1621080000; | const activationTime = 1636977600; | ||||
const secondsInAWeek = 604800; | const secondsInAWeek = 604800; | ||||
// When the upgrade activation is 10 weeks away, make the upgrade notice visible | // When the upgrade activation is 10 weeks away, make the upgrade notice visible | ||||
const unixTime = Math.floor((new Date()).getTime() / 1000); | const unixTime = Math.floor((new Date()).getTime() / 1000); | ||||
if ((unixTime > activationTime - 10 * secondsInAWeek) && (unixTime <= activationTime)) { | if ((unixTime > activationTime - 10 * secondsInAWeek) && (unixTime <= activationTime)) { | ||||
$("#upgrade-notice-pre-activation").css("display", ""); | $("#upgrade-notice-pre-activation").css("display", ""); | ||||
} | } | ||||
// For the week following the upgrade activation, show a message for late-comers | // For the week following the upgrade activation, show a message for late-comers | ||||
if ((unixTime > activationTime) && (unixTime < activationTime + secondsInAWeek)) { | if ((unixTime > activationTime) && (unixTime < activationTime + secondsInAWeek)) { | ||||
$("#upgrade-notice-post-activation").css("display", ""); | $("#upgrade-notice-post-activation").css("display", ""); | ||||
} | } | ||||
} | } | ||||
document.addEventListener('DOMContentLoaded', updateUpgradeNotice); | document.addEventListener('DOMContentLoaded', updateUpgradeNotice); | ||||
</script> | </script> | ||||
<div id="upgrade-notice-pre-activation" class="hero-box" style="background: #ffe090; display: none;"> | <div id="upgrade-notice-pre-activation" class="hero-box" style="background: #ffe090; display: none;"> | ||||
<h3>Prepare for the May 2021 upgrade today!</h3> | <h3>Prepare for the Nov 2021 upgrade today!</h3> | ||||
On May 15th, 2021, the Bitcoin ABC network will upgrade. | On Nov 15th, 2021, the Bitcoin ABC network will upgrade. | ||||
When the median time of the last 11 blocks is over timestamp 1621080000 (12:00:00 UTC), | When the median time of the last 11 blocks is over timestamp 1636977600 (12:00:00 UTC), | ||||
the nodes running a version prior 0.23.0 will no longer be in sync with the BCHA network. | the nodes running a version prior 0.24.0 will no longer be in sync with the eCash network. | ||||
<br /> | <br /> | ||||
In order to keep running after May 15th, 2021, your node needs to | In order to keep running after Nov 15th, 2021, your node needs to | ||||
be updated to version 0.23.0 or later.<br /> | be updated to version 0.24.0 or later.<br /> | ||||
Update early to keep your node in sync with the BCHA network ! | Update early to keep your node in sync with the eCash network ! | ||||
</div> | </div> | ||||
<div id="upgrade-notice-post-activation" class="hero-box" style="background: #ffb0a0; display: none;"> | <div id="upgrade-notice-post-activation" class="hero-box" style="background: #ffb0a0; display: none;"> | ||||
<h3>The May 2021 upgrade has activated!</h3> | <h3>The Nov 2021 upgrade has activated!</h3> | ||||
If you forgot to upgrade to 0.23.0 or later, your node is no longer in sync with the rest of the network! | If you forgot to upgrade to 0.24.0 or later, your node is no longer in sync with the rest of the network! | ||||
Upgrade to the latest release below. | Upgrade to the latest release below. | ||||
</div> | </div> |