123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="UTF-8"/>
- <meta name="author" content="Trey Del Bonis"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
-
- <title>Bitcoin Halving Countdown</title>
- <script src="main.js"></script>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
-
- <body onload="init();">
-
- <div id="content">
- <div id="heading">
- <h1>Bitcoin Block Halving Countdown!</h1>
- <h3><span id="blocksleft">...</span> blocks left</h3>
- <h3><span id="timeleft">... remaining</span></h3>
- <h3 id="halftimectr"><span id="halftime">ETA ...</span></h3>
- <p>
- Click/tap on the rows for more statistics - <a href="#faq">FAQ</a>
- </p>
- </div>
-
- <div id="blocklist">
- <span id="blocklistloading">Loading blocks...</span>
- </div>
-
- </div>
-
- <hr/>
-
- <div id="faq">
- <h2 style="text-align: center;">Halving FAQ</h2>
-
- <p>
- <b>Q:</b> What's a halving? Does that mean I'll have twice/half as many coins?
- </p>
- <p>
- <b>A:</b> No, a reward halving is when the fixed subsidy for miners gets
- cut in half. This has happened twice before, and will happen many more
- times until all bitcoins have been mined (21 million).
- </p>
-
- <p>
- <b>Q:</b> Who decides when halvings happen? Can this be stopped?
- </p>
- <p>
- <b>A:</b> Satoshi embedded the halving algorithm into the consensus protocol of
- the Bitcoin network. It can only be changed if every user of the
- network decided to change it as part of a hard fork. One of Bitcoin's
- core offerings is its fixed and unchangable monetary policy, so it's
- <em>exceedingly unlikely</em> that it is going to be changed.
- <br/><br/>
- The reward function (in Bitcoins) is
- <code>r(h) = 50 / (2 ** floor(h / 210000))</code>, where h is block height.
- </p>
-
- <p>
- <b>Q:</b> I noticed some of your measurments here are different than those on
- other countdown clocks. Why is that?
- </p>
- <p>
- <b>A:</b> Since mining is a probabilistic process, it's impossible to predict
- when new blocks will be mined. <em>On average</em>, new blocks are
- mined every 10 minutes, but this can vary a lot. So it's hard to
- predict <em>exactly</em> when block number 630000 will be mined, but all
- answers will converge when the time comes. Since everyone does the math
- slightly differently we all get slightly different answers.
- </p>
- <p>
- <b>Update:</b> I've been noticing the hashrate seems to be a lot higher
- than usual. I wrote a modified block halving ETA algorithm that bases
- block times on the average of the recent blocks, but I won't display it
- directly as might give too misleading predictions, or my code might be
- wrong. You can check its answer below:
- <br/>
- <button onclick="updateFancyPrediction();">Check adjusted ETA</button>
- <i><span id="fancyprediction"></span></i>
- </p>
-
- <p>
- <b>Q:</b> Can I use this event to make money?
- </p>
- <p>
- <b>A:</b> Probably not. But it's been observed that crypto bull markets have
- happened in the (roughly) year after each of the previous two halvings,
- so take that how you will.
- </p>
-
- <p>
- <b>Q:</b> Bull markets? Does that mean I should buy Bitcoin?
- </p>
- <p>
- <b>A:</b> That's up to you. I'm not your financial advisor. Don't invest what
- you can't afford to lose.
- <!-- But also, buy Bitcoin! -->
- </p>
-
- <p>
- <b>Q:</b> I have another question for you
- </p>
- <p>
- <b>A:</b> I can be contacted at the following addresses...
- <ul>
- <li>Matrix: @trey:foobar.style</li>
- <li>IRC on Freenode: treyzania</li>
- <li>Briar: <a href="briar://ac22od43vo66zsclxawfcd63ltweyfbfbqgk2w67vswpxshuwckr6">briar://ac22od43vo66zsclxawfcd63ltweyfbfbqgk2w67vswpxshuwckr6</a></li>
- </ul>
- </div>
-
- <hr/>
-
- <div id="footer">
- Made by <a href="https://tr3y.io">Trey</a> - <a href="https://code.tr3y.io/treyzania/minihalf">Source</a>
- <div id="donations">
- <p>BTC bc1qj4tw5zuw3cl2wy5jw0lt4jghksrex8dnndp3vn</p>
- <p>BTC legacy 3MgDA5Ukc6waaaK6BVndLdQBtKnYhZHuTK</p>
- <p>DOGE DBDgYidXBpSCkFhhAZV8Lfp4NuMDD4SNxk</p>
- <p>ETH 0x08CA026673F0dD458fef8d7f9Df72Ad105558eA3</p>
- </div>
- </div>
-
- </body>
-
- </html>
-
- <!--
- The student asked his master, "Is this good for Bitcoin?".
-
- The master, looking up from his tea towards the rising sun, said,
-
- "Yes, this is good for Bitcoin."
-
- And it was good.
- -->
|