About Lottery


  • administrators

    Once a day, LWOS offers a lottery. Players can purchase tickets. Only one winner is possible. The winner will win the losing tickets. The winning ticket is designated with the value of the nonce of the last Bitcoin block at the time of the draw. 2% is deducted from the winnings and returned to the game. No fee on Extras.

    Each participant will earn 10 games and the winner 10 games per slice full of 10. Enjoy!

    The lottery closes one minute before the draw. If you buy a ticket during this time, it will be deferred to the next lottery.

    If you buy a ticket and nothing happens is that the lottery is not on (maintenance, update). Your ticket is saved, no need to buy another.

    The nonce is a random value that miners must find to find a Bitcoin block. At the time of the draw, the lottery asks the BlockChain site for information on the last Bitcoin block to obtain the nonce. If the BlockChain site is saturated (as it can happen sometimes), it will be the last block found at the time of the valid API request that will be used (so, a delay can be applied)

    About the nonce: https://en.bitcoin.it/wiki/Nonce

    The formula for designating the winner is simple: = 1+ nonce MODULO number of tickets


    Example if the block is #458071 Nonce is 2867726007

    Number of tickets Winner
    1 ticket ticket #1
    2 tickets ticket #2
    3 tickets ticket #1
    4 tickets ticket #4
    5 tickets ticket #3
    etc ...

    You can earn landmines at the Lottery, if the stock of 💣 hold by LWOS allows it:

    • 1 💣 offers per player
    • For the winner: +1 💣 per slice of 10 🎫 sold (so if <10 🎫: 0 💣 )

  • administrators

    Some days, the lottery will take longer to complete the draw.

    The blockchain.info API is used to obtain the data.

    Once the draw time is reached, the API is consulted to obtain the hash of the last block Bitcoin.

    Then, the API is consulted again to obtain detailed information on this block and thus obtain the nonce value.

    The delay of the draw is due to the fact that the second call to the API is sometimes wrong. In this case, the API is consulted until the desired information is obtained.

    Either the API is overloaded, or the block is too recent for the API to publish information about it.

    It may take a few extra minutes to finalize the draw, but this delay does not affect the result since the block was targeted at the scheduled time.


  • administrators

    The price of ticket is now 500 satoshis instead 1000. Enjoy!


  • administrators

    Now you can earn landmines at the Lottery, if the stock of 💣 hold by LWOS allows it:

    • 1 💣 offers per player
    • For the winner: +1 💣 per slice of 10 🎫 sold (so if <10 🎫: 0 💣 )

  • administrators

    From today, at the Lottery, each participant will earn 10 games and the winner 10 games per slice full of 10. Enjoy! 🤗


  • administrators

    The draw of the lottery couldn't take place today. The lottery has crashed during the draw because the nonce returned from Blockchain.info API was ... negative! 😮

    https://blockchain.info/fr/rawblock/000000000000000000073179b014c06d373dc834a9765a98166b458888603095

    "nonce":-1470735004,
    

    and in an other hand:
    https://www.blockchain.com/btc/block/000000000000000000073179b014c06d373dc834a9765a98166b458888603095

    nonce=2824232292
    

    Thanks to @shabinmathew23 for the report of the crash.

    I will try to fix ASAP.


  • administrators

    The problem is that blockchain.info API provides a nonce as an 32bits signed integer and it is wrong. The nonce is an 32 unsigned integer.

    I fixed this rare case. If a negative nonce is given, it will be cast into an unsigned one.

    The last draw has been corrected with the right nonce, and the lottery is running now.


  • administrators

    Lottery is again delayed today because the blockchain.info API is overloaded for getting the nonce value.

    The block retained for the draw is: 000000000000000000187b796200931b2698b5fb0b801f2cc56beacd2c2fa53c

    https://blockchain.info/fr/rawblock/000000000000000000187b796200931b2698b5fb0b801f2cc56beacd2c2fa53c


    Edit: It's ok now


Log in to reply
 

Looks like your connection to LWOS Forum was lost, please wait while we try to reconnect.