Bitcoin Forum

Other => Beginners & Help => Topic started by: DigiSoul on January 07, 2017, 07:46:12 AM



Title: Query on block ???
Post by: DigiSoul on January 07, 2017, 07:46:12 AM
Hello . .just by surfing on this forum i find RAFFLE .. its that numbers are taken by buyers from 0-9 and a-f . And then the organizer of raffle choose a block. How this number or alphabet is calculated through numeric block example 444600 etc  ???


Title: Re: Query on block ???
Post by: shorena on January 07, 2017, 07:53:44 AM
Hello . .just by surfing on this forum i find RAFFLE .. its that numbers are taken by buyers from 0-9 and a-f . And then the organizer of raffle choose a block. How this number or alphabet is calculated through numeric block example 444600 etc  ???

Each block has a height (e.g. 444600) and a hash (e.g. 000000000000000000f2085ab75fa5170fb1df5a335c79e78426063487486418). Without knowing the raffle, they probably refer to the (last digit of the) hash of the block with height X.


Title: Re: Query on block ???
Post by: DigiSoul on January 07, 2017, 01:03:12 PM
Hello . .just by surfing on this forum i find RAFFLE .. its that numbers are taken by buyers from 0-9 and a-f . And then the organizer of raffle choose a block. How this number or alphabet is calculated through numeric block example 444600 etc  ???

Each block has a height (e.g. 444600) and a hash (e.g. 000000000000000000f2085ab75fa5170fb1df5a335c79e78426063487486418). Without knowing the raffle, they probably refer to the (last digit of the) hash of the block with height X.
how i get to know the hash from a block??


Title: Re: Query on block ???
Post by: devans on January 07, 2017, 01:05:56 PM
how i get to know the hash from a block??

You can use a block explorer such as BlockCypher (https://live.blockcypher.com/btc). Enter the block height e.g. 444600) in the search field at the top of the page and press enter. The hash will be beneath the page header.


Title: Re: Query on block ???
Post by: DigiSoul on January 07, 2017, 01:07:16 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?


Title: Re: Query on block ???
Post by: DigiSoul on January 07, 2017, 01:08:29 PM
how i get to know the hash from a block??
Thanks :) but how a block is chosen?

You can use a block explorer such as BlockCypher (https://live.blockcypher.com/btc). Enter the block height e.g. 444600) in the search field at the top of the page and press enter. The hash will be beneath the page header.


Title: Re: Query on block ???
Post by: shorena on January 07, 2017, 01:20:33 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

We cant tell you that, because we dont run the raffle in question. I personally would set a fixed time (including timezone) and the nearest block to this time would be the one. Should two blocks have the same time difference to the given time it would be the later. Something along those lines so every can know in advance which block will be the one. A (random) number block in the not to distant future might also work.


Title: Re: Query on block ???
Post by: DigiSoul on January 07, 2017, 03:14:41 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?


Title: Re: Query on block ???
Post by: shorena on January 07, 2017, 07:02:06 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?

Lets say I start the raffle today and want it to finish some time sunday next week. So I go to e.g. blocktrail and see the current block height is 447073 and there are on average 144 blocks per day. So I go to random.org and let me get a random number between 72 and 144. It tells me 99. I add another 144*7 blocks for the week and say that block 447073 + 99 + (144*7) = 448180 will decide who wins the raffle. I would also require valid transactions to be confirmed in block 448179 or earlier.


Title: Re: Query on block ???
Post by: DigiSoul on January 13, 2017, 09:26:47 AM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?

Lets say I start the raffle today and want it to finish some time sunday next week. So I go to e.g. blocktrail and see the current block height is 447073 and there are on average 144 blocks per day. So I go to random.org and let me get a random number between 72 and 144. It tells me 99. I add another 144*7 blocks for the week and say that block 447073 + 99 + (144*7) = 448180 will decide who wins the raffle. I would also require valid transactions to be confirmed in block 448179 or earlier.
why a random number is added? And also random number changes everytime whenever i click 'generate'


Title: Re: Query on block ???
Post by: shorena on January 13, 2017, 09:37:59 AM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?

Lets say I start the raffle today and want it to finish some time sunday next week. So I go to e.g. blocktrail and see the current block height is 447073 and there are on average 144 blocks per day. So I go to random.org and let me get a random number between 72 and 144. It tells me 99. I add another 144*7 blocks for the week and say that block 447073 + 99 + (144*7) = 448180 will decide who wins the raffle. I would also require valid transactions to be confirmed in block 448179 or earlier.
why a random number is added? And also random number changes everytime whenever i click 'generate'

For fun. I generates a new one with each click, yes.


Title: Re: Query on block ???
Post by: DigiSoul on January 13, 2017, 05:51:50 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?

Lets say I start the raffle today and want it to finish some time sunday next week. So I go to e.g. blocktrail and see the current block height is 447073 and there are on average 144 blocks per day. So I go to random.org and let me get a random number between 72 and 144. It tells me 99. I add another 144*7 blocks for the week and say that block 447073 + 99 + (144*7) = 448180 will decide who wins the raffle. I would also require valid transactions to be confirmed in block 448179 or earlier.
why a random number is added? And also random number changes everytime whenever i click 'generate'

For fun. I generates a new one with each click, yes.
yeah but i dont suppose its need of a random number :/


Title: Re: Query on block ???
Post by: shorena on January 13, 2017, 07:13:40 PM
Also how the organizer of the RAFFLE choose a block? Is he do it as the time at which the RAFFLE closes and the current block which is going on or on some other basis?

A (random) number block in the not to distant future might also work.
what you meant by your above quoted text?

Lets say I start the raffle today and want it to finish some time sunday next week. So I go to e.g. blocktrail and see the current block height is 447073 and there are on average 144 blocks per day. So I go to random.org and let me get a random number between 72 and 144. It tells me 99. I add another 144*7 blocks for the week and say that block 447073 + 99 + (144*7) = 448180 will decide who wins the raffle. I would also require valid transactions to be confirmed in block 448179 or earlier.
why a random number is added? And also random number changes everytime whenever i click 'generate'

For fun. I generates a new one with each click, yes.
yeah but i dont suppose its need of a random number :/

No it doesnt need one, but might as well add one in the mix for fun.