Author

Topic: Salient block countdown timer (Read 3657 times)

donator
Activity: 2058
Merit: 1054
November 28, 2012, 02:21:25 AM
#9
Smiley

does not work for me with fox. chrome is ok.
I can't reproduce, for me it works on both. Though strangely, it now takes 10-20 seconds to load, earlier it was faster.
legendary
Activity: 1708
Merit: 1019
November 27, 2012, 06:25:17 PM
#8
 Smiley

does not work for me with fox. chrome is ok.
donator
Activity: 2058
Merit: 1054
November 27, 2012, 04:03:22 AM
#7
Someone also put up http://bitcoinclock.com/
I know and mentioned it in the OP. The problem is that as far as I know it doesn't do anything salient when the halving arrives.
legendary
Activity: 1596
Merit: 1091
November 26, 2012, 04:55:39 PM
#6
Someone also put up http://bitcoinclock.com/
donator
Activity: 2058
Merit: 1054
November 26, 2012, 02:15:56 PM
#5
Could you use the images in the 'Lets count to 21 million with images' thread as the count down?
I don't consider this a desirable feature.
legendary
Activity: 947
Merit: 1042
Hamster ate my bitcoin
November 26, 2012, 12:19:54 PM
#4
Thanks!

Could you use the images in the 'Lets count to 21 million with images' thread as the count down?
legendary
Activity: 2618
Merit: 1006
November 26, 2012, 12:15:30 PM
#3
I hope the miners have tested their block generation code. It would be a real anti-climax if the appointed block arrived and the generation failed to halve Smiley
Well, that would be an unhappy miner then because the block would be rejected as invalid and eventually someone will mine a 25 BTC block...

Miners get to choose which transactions get in their block - the "genesis" transactions out of thin air however are capped. Why else should they mine 50 BTC blocks if they could mine 1000 BTC blocks?
newbie
Activity: 56
Merit: 0
November 26, 2012, 12:08:28 PM
#2
Funky tool. I love how high level languages and APIs make these sorts of tools very simple to construct.
donator
Activity: 2058
Merit: 1054
November 26, 2012, 05:04:07 AM
#1
The block reward halving is upon us, and people celebrating need a way to be informed at the moment of the event. The go-to link right now is bitcoinclock.com, but AFAIK it doesn't actually do anything when the event happens.

With the help of gweedo, I bring you the Block halving party countdown, as a service to those who wish a salient way to pinpoint the exact time to begin the festivities.

You can set as a parameter the block you wish to celebrate (default is 209999, the last block with 50 BTC reward, after which the network starts working on a 25 BTC block).

When the target block is found, the background becomes green and 3 beeps are sounded. A block before that the background is orange and 1 beep is sounded, and two blocks before the target the background is red.

It uses blockexplorer.com data, so should be about as accurate as it.

You can try it out with a nearby target to test it and become familiar with the functionality.

The code consists of 2 files:

getBlockHeight.php:
Code:
$ch curl_init("https://blockexplorer.com/q/getblockcount");
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
echo 
curl_exec($ch);
curl_close($ch);
?>


index.php:
Code:
$height=209999;
if(isset(
$_GET['i'])){
    
$height=$_GET['i'];
}
?>



Block halving party countdown









Blocks remaining:



Enter your block height:








Enjoy!
Jump to: