Scrat Acorns (OP)
|
|
May 18, 2013, 05:20:17 PM |
|
I won 150 bets and lost 6... I bet on below 64000, which has a 1 in 1000 loss rate... huh?
Your math is wrong. Below 64000 has a 2.34% loss rate.
|
|
|
|
Hfleer
Sr. Member
Offline
Activity: 448
Merit: 250
Changing avatars is currently not possible.
|
|
May 18, 2013, 05:32:33 PM |
|
Coinroll is a new dice rolling game with a few interesting features: A house edge of only 1%Unconfirmed depositsWe accept unconfirmed transactions. You can begin playing instantly - no registration is required. Deferred withdrawalsYou can choose to have your winnings sent to an address once your deposit has cleared. Staying on the website while your transaction is queued is not necessary. Instant betsBets are off-the-chain and are processed instantly while still being provably fair. As such, you can bet as low as 0.00001 BTC. APIAn easy-to-use interface is available for those who would like to use Coinroll from the command line or integrate it into their projects. Custom gamesWhile a few preset games are available, you can set a target number from 1 to 64000 and your win odds and multiplier will be calculated accordingly. Here's an example of a bet. More information on provability and database dumps are available here. A note on withdrawals: A 0.0005 miner's fee is added to all withdrawals, so the minimum balance you can withdraw from is 0.00050001 (it would result to a transaction of 1 satoshi plus the minumum fee). The fee is automatically factored into the amount when you click on Withdraw. Betting limits will slowly be increased over the coming weeks. Come check it out at https://coinroll.it I won 150 bets and lost 6... I bet on below 64000, which has a 1 in 1000 loss rate... huh? I just rolled 200x this bet and lost 4 times won 196, it does show you the win percentage as 97.7% in the game select area.
|
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
|
|
|
smeagol
Legendary
Offline
Activity: 1008
Merit: 1005
|
|
May 18, 2013, 06:03:27 PM |
|
I won 150 bets and lost 6... I bet on below 64000, which has a 1 in 1000 loss rate... huh?
Your math is wrong. Below 64000 has a 2.34% loss rate. Ahhh! MY MATH! oops... lol lost 60 bitcoins...
|
|
|
|
Hfleer
Sr. Member
Offline
Activity: 448
Merit: 250
Changing avatars is currently not possible.
|
|
May 18, 2013, 07:48:57 PM |
|
I won 150 bets and lost 6... I bet on below 64000, which has a 1 in 1000 loss rate... huh?
Your math is wrong. Below 64000 has a 2.34% loss rate. Ahhh! MY MATH! oops... lol lost 60 bitcoins... ouch
|
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
|
|
|
|
smeagol
Legendary
Offline
Activity: 1008
Merit: 1005
|
|
May 18, 2013, 08:26:20 PM |
|
oops! sorry! I meant 0.6 BTC... not as much of a loss but still a lot...
|
|
|
|
|
Hfleer
Sr. Member
Offline
Activity: 448
Merit: 250
Changing avatars is currently not possible.
|
|
May 19, 2013, 11:13:02 AM |
|
Over half-million bets and counting, nice.
|
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
|
|
|
Zaih
|
|
May 19, 2013, 11:18:46 AM |
|
Over half-million bets and counting, nice. Very nice. Grats
|
|
|
|
Namworld
|
|
May 19, 2013, 09:58:54 PM |
|
The live bets feed page is very neat.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
May 20, 2013, 03:31:34 AM |
|
I was asked to audit the provable fairness, and did so. I found a problem, though I don't think it's important, and can be corrected. Take https://coinroll.it/bet/0024cd8925bf for instance. It says the nonce was 41988, that the lucky number was 41982, and that I can verify this by running: $ echo -n '090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65:41988' | openssl dgst -sha512 -hmac 'mEL0R7en4QQZtJpHkath9YtvEed2YbzrOAQrIkTkd1ZmX5YNoPprlWf6XeTFoQZD' | sed 's/^.* //' | cut -c1-4 | xargs -I{} printf "%d\n" 0x{} 56785 However, as you can see, that gives 56785 as the lucky number. If I use 41987 as the nonce, I get the correct lucky number: $ echo -n '090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65:41987' | openssl dgst -sha512 -hmac 'mEL0R7en4QQZtJpHkath9YtvEed2YbzrOAQrIkTkd1ZmX5YNoPprlWf6XeTFoQZD' | sed 's/^.* //' | cut -c1-4 | xargs -I{} printf "%d\n" 0x{} 41982 I think all that's happened is that for a few thousand bets the database recorded the wrong nonce. If we look at the database dump, we see records for nonces 41985, 41986, 41988 (twice), 41989, etc. 41987 is missing, and 41988 was recorded twice. https://coinroll.it/bet/abd8a11aba66 is the other time it was used. Here are the two verification screens for the two bets. Notice that the shell commands are identical in the two cases, but the lucky numbers they are meant to produce are different... Edit: note that sometimes the reported nonce is off by as much as 4: bet "04ea204f8cb5" nonce 42290 should be 42286 (off by 4) bet "c56d77775b9e" nonce 42290 should be 42287 (off by 3) bet "9e2e44e570c0" nonce 42290 should be 42288 (off by 2) bet "2ec74cf218a1" nonce 42290 should be 42289 (off by 1)
bet "70cb835c740f" nonce 42299 should be 42296 (off by 3) bet "de7c0b0ceb1d" nonce 42299 should be 42297 (off by 2) bet "715dd2d635ee" nonce 42299 should be 42298 (off by 1) Edit2: Note also that none of this seems to affect the fairness. It does just seem to be an issue with the archiving of the bets, specifically the nonces. The stored lucky number and result is correct, and presumably so was the payout.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
Namworld
|
|
May 20, 2013, 05:24:58 AM Last edit: May 20, 2013, 05:40:54 AM by Namworld |
|
Short story: Only the bets archive/history seems to have the wrong nonces (repeated) as viewed in archive or on the website. The lucky numbers appear to be the one that would have been generated with the correct nonce (not skipped like on the archived bets). Ex: https://coinroll.it/bet/26c991a300e6Shows nonce 41875 & lucky number 45957 (Which can be generated with nonce 41874) https://coinroll.it/bet/916f4107ff33 Shows nonce 41875 & lucky number 25074 (Which can be generated with nonce 41875) Well that is an issue if historic bets are to be verified with a script. Although if it only impacts the archive, correcting the issue should be easy.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
May 20, 2013, 05:50:04 AM |
|
Well that is an issue if historic bets are to be verified with a script. Although if it only impacts the archive, correcting the issue should be easy.
Yes. I tested them all, and no nonce is off by more than 4, so it's easy to find out what the correct nonce should be.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
Scrat Acorns (OP)
|
|
May 20, 2013, 08:51:23 AM Last edit: May 20, 2013, 08:29:08 PM by Scrat Acorns |
|
Thank you for pointing this out dooglus. I will investigate.
As you said, this only affects the archiving of the bets since it is a separate routine.
Edit: This is a concurrency bug. The lucky number calculation correctly uses the atomically incremented nonce while the archiving operation increments it by itself. This will be fixed.
|
|
|
|
BigBitz
|
|
May 20, 2013, 04:31:08 PM |
|
Wow. Just lost 15 in a row of the 25% chance win bet. Brutal. No BTC left
|
Tips BTC --> 1BS2sYvy3T1cpNhie6CVFMcUrHa84a8mPa <-- Thanks! || Tips [LTC] --> LaytYJNCha7z7zcws5a2o2GWWjvWfDCGkr <--
|
|
|
Mooshire
|
|
May 20, 2013, 04:50:07 PM |
|
If you're like me and what even payouts instead of even odds:
Less than 32440 for 2x payout
Less than 21626 for 3x payout
Less than 16220 for 4x payout
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
May 20, 2013, 07:02:11 PM |
|
Wow. Just lost 15 in a row of the 25% chance win bet. Brutal. No BTC left That happens 1.33% of the time, so it's not that rare: >>> (0.75**15) * 100 1.3363461010158062
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
BigBitz
|
|
May 20, 2013, 08:10:38 PM |
|
Wow. Just lost 15 in a row of the 25% chance win bet. Brutal. No BTC left That happens 1.33% of the time, so it's not that rare: >>> (0.75**15) * 100 1.3363461010158062 lol, thanks man. Lost my last bit coins
|
Tips BTC --> 1BS2sYvy3T1cpNhie6CVFMcUrHa84a8mPa <-- Thanks! || Tips [LTC] --> LaytYJNCha7z7zcws5a2o2GWWjvWfDCGkr <--
|
|
|
Scrat Acorns (OP)
|
|
May 20, 2013, 09:19:49 PM |
|
The messed up nonces have been fixed.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
May 20, 2013, 09:38:35 PM |
|
The messed up nonces have been fixed.
Is the db dump fixed now too? From Wikipedia, the free encyclopedia
Nonce may refer to:
Cryptographic nonce, a number or bit string used only once, in security engineering
Nonce (slang), a British and Australian slang term for a sex offender, usually a child sexual abuser Being British, 'nonce' always seems like unfortunate terminology...
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
|