Bitcoin Forum
May 24, 2024, 06:17:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 8 9 10 11 12 13 »  All
  Print  
Author Topic: CoinDice - Start your own dice site today.  (Read 49592 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
FreeReddCoin
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
March 15, 2014, 08:34:50 AM
 #21

Im curious how would you set up the wallet for something like this? any step by step guides around?
Dogemogul
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
March 16, 2014, 03:18:02 AM
 #22

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 16, 2014, 03:22:57 PM
 #23

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy
CrashX
Full Member
***
Offline Offline

Activity: 238
Merit: 101



View Profile
March 16, 2014, 11:55:19 PM
 #24

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy

How hard is to change the design? template?

Also you said it needs a wallet? Which one do you recommend and why?

Also notice that demo runs a bit slow, will this be a problem?
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 17, 2014, 12:28:03 AM
 #25

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy

How hard is to change the design? template?

Also you said it needs a wallet? Which one do you recommend and why?

Also notice that demo runs a bit slow, will this be a problem?

1) It's clean css work, so you'll need just some basic coding.

2) it must be original wallet of the coin you're going to implement (daemon)

3) That's due to our server, we feels that it's not necessary to run the demos on better performanced server as far as it's enough for the demo purposes.
zephyrphyre
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 17, 2014, 03:04:12 AM
 #26

Hello, I'm interested in your script. Can you pm me or email me at zephyrphyre@gmail.com. Thanks
CrashX
Full Member
***
Offline Offline

Activity: 238
Merit: 101



View Profile
March 17, 2014, 03:09:06 AM
 #27

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy

How hard is to change the design? template?

Also you said it needs a wallet? Which one do you recommend and why?

Also notice that demo runs a bit slow, will this be a problem?

1) It's clean css work, so you'll need just some basic coding.

2) it must be original wallet of the coin you're going to implement (daemon)

3) That's due to our server, we feels that it's not necessary to run the demos on better performanced server as far as it's enough for the demo purposes.

Will any server do? or Do I required a dedicated server to run a daemon?
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 17, 2014, 08:31:02 AM
 #28

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy

How hard is to change the design? template?

Also you said it needs a wallet? Which one do you recommend and why?

Also notice that demo runs a bit slow, will this be a problem?

1) It's clean css work, so you'll need just some basic coding.

2) it must be original wallet of the coin you're going to implement (daemon)

3) That's due to our server, we feels that it's not necessary to run the demos on better performanced server as far as it's enough for the demo purposes.

Will any server do? or Do I required a dedicated server to run a daemon?

You can use any server (even VPS).
CrashX
Full Member
***
Offline Offline

Activity: 238
Merit: 101



View Profile
March 17, 2014, 11:36:39 PM
 #29

Also, in 2.0 your check_deposits script run in corn every minute and takes way longer than 1 minute to run completely through with anyone with a semi-decent player list. Does 3.0 fix this issue?

3.0 fixes the issue only if you have better performanced server. Cheesy

How hard is to change the design? template?

Also you said it needs a wallet? Which one do you recommend and why?

Also notice that demo runs a bit slow, will this be a problem?

1) It's clean css work, so you'll need just some basic coding.

2) it must be original wallet of the coin you're going to implement (daemon)

3) That's due to our server, we feels that it's not necessary to run the demos on better performanced server as far as it's enough for the demo purposes.

Will any server do? or Do I required a dedicated server to run a daemon?

You can use any server (even VPS).

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?
wpstudio
Hero Member
*****
Offline Offline

Activity: 660
Merit: 500


View Profile WWW
March 18, 2014, 01:39:00 AM
 #30

You have to compile your own daemon from the source code of the coin.
btc-mike
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1001



View Profile
March 18, 2014, 01:39:59 AM
 #31

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?

I would agree with that. Shared server may work - depends on host.

What coin? Every coin has its own daemon.
BenAnh
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
March 18, 2014, 02:55:54 AM
 #32

What's the diff with PD? Any other outstanding features plus pros and cons?
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 18, 2014, 07:17:33 AM
 #33

What's the diff with PD? Any other outstanding features plus pros and cons?

All changes are described here:
https://bitcointalk.org/index.php?topic=507515.0
Nothing else changed.

Thanks for question.
CrashX
Full Member
***
Offline Offline

Activity: 238
Merit: 101



View Profile
March 18, 2014, 07:49:57 AM
 #34

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?

I would agree with that. Shared server may work - depends on host.

What coin? Every coin has its own daemon.

BTC

Is their a compile daemon for Linux servers?
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 18, 2014, 08:38:01 AM
 #35

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?

I would agree with that. Shared server may work - depends on host.

What coin? Every coin has its own daemon.

BTC

Is their a compile daemon for Linux servers?

Yes. And if you'll have trouble with it, our support helps you.
CrashX
Full Member
***
Offline Offline

Activity: 238
Merit: 101



View Profile
March 18, 2014, 08:40:11 AM
 #36

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?

I would agree with that. Shared server may work - depends on host.

What coin? Every coin has its own daemon.

BTC

Is their a compile daemon for Linux servers?

Yes. And if you'll have trouble with it, our support helps you.

So a shared server will work? please verified.

But thinking on purchasing this a script for a while now  Cheesy
johny1976 (OP)
Legendary
*
Offline Offline

Activity: 1135
Merit: 1002

Developer


View Profile
March 18, 2014, 09:48:45 AM
 #37

Im using a shared server, I asked them about it, they told me they might be able to install it, but they'll need to review it or something.

Do you have the url for the daemon?

I would agree with that. Shared server may work - depends on host.

What coin? Every coin has its own daemon.

BTC

Is their a compile daemon for Linux servers?

Yes. And if you'll have trouble with it, our support helps you.

So a shared server will work? please verified.

But thinking on purchasing this a script for a while now  Cheesy

It depends. It will work 100% on VPS, but on some shared servers it works and on other it does not so it depends on what your provider permit you to do.

Do you have any other questions?
Dogemogul
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
March 18, 2014, 10:32:00 PM
 #38

I don't understand.. You told that guy his code he submitted was a way to fix the double deposit error, but you guys corrected it a different way.... But in fact the coindice 3.0 check_deposit script clearly has his way implemented in it.

Code:
<?php
/*
 *  © CoinDice 
 *  Demo: http://www.btcircle.com/dice
 *  Please do not copy or redistribute.
 *  More licences we sell, more products we develop in the future.  
*/

// CRON must be running every minute!
$included=true;
include 
'../../inc/db-conf.php';
include 
'../../inc/wallet_driver.php';
$wallet=new jsonRPCClient($driver_login);
include 
'../../inc/functions.php';


$deposits=mysql_query("SELECT * FROM `deposits`");
while (
$dp=mysql_fetch_array($deposits)) {
  
$received=0;
  
$txid='';
  
$txs=$wallet->listtransactions('',2000);
  
$txs=array_reverse($txs);
  foreach (
$txs as $tx) {
    if (
$tx['category']!='receive') continue;
    if (
$tx['confirmations']<1) continue;
    if (
$tx['address']!=$dp['address']) continue;
    
$received=$tx['amount'];
    
$txid=$tx['txid'];
    break;
  }
  if (
$received<0.00000001) continue;
  
$txid=($txid=='')?'[unknown]':$txid;
  if (
$dp['received']==1) {
    
mysql_query("UPDATE `deposits` SET `confirmations`=`confirmations`+1 WHERE `id`=$dp[id] LIMIT 1");
    if (++
$dp['confirmations']>=6) {
      
$delExed=false;
      do {
        
$delExed=mysql_query("DELETE FROM `deposits` WHERE `id`=$dp[id] LIMIT 1");
      } while (
$delExed==false);
      if (
$delExed==true) {
        
mysql_query("UPDATE `players` SET `balance`=TRUNCATE(ROUND((`balance`+$received),9),8) WHERE `id`=$dp[player_id] LIMIT 1");
        
mysql_query("INSERT INTO `transactions` (`player_id`,`amount`,`txid`) VALUES ($dp[player_id],$dp[amount],'$dp[txid]')");
      }
    }
    continue;
  }  
  
  
mysql_query("UPDATE `deposits` SET `received`=1,`amount`=$received,`txid`='$txid' WHERE `id`=$dp[id] LIMIT 1");
}
mysql_query("DELETE FROM `deposits` WHERE `time_generated`<NOW()-INTERVAL 7 DAY");

?>


Your 3.0 check deposit's is exactly the same plus his modifications.. I think you owe him some credit.

Quote
Quote from: johny1976 on March 11, 2014, 03:35:50 PM
Quote from: hasan666 on March 11, 2014, 02:08:56 PM
This is a patch for double deposit bug. Johny said his script is bugs free. No it is not.

/var/www/content/cron/check_deposits.php

Code:
     if ($delExed==true) {
+        if (mysql_query("SELECT COUNT(*) FROM transactions WHERE txid = '$dp[txid]'") >= 1) {
+          echo "TXID already exists!";
+        }
+       else {
        mysql_query("UPDATE `players` SET `balance`=TRUNCATE(ROUND((`balance`+$received),9),8) WHERE `id`=$dp[player_id] LIMIT 1");
        mysql_query("INSERT INTO `transactions` (`player_id`,`amount`,`txid`) VALUES ($dp[player_id],$dp[amount],'$dp[txid]')");
+        }

The fact that we have not used your fix does not mean that we haven't solved it other way.

The script is secure even without this edit. Smiley


This thread is unactualized, please use thread for version 3.
Groc
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250


Bounty manager (https://t.me/Gudwinn)


View Profile
March 19, 2014, 01:12:02 AM
 #39

...
Demos:
btcircle.com/dice/OrangeSquare (new skin demo)
btcircle.com/dice/ClassicPurple (classic skin demo)

Use free bitcoin option to try it out for yourself!
...

I can't try these in free mode since they both say "Invalid captcha!" when claiming btc. Are they working for you guys?

And obviously you cant bet zero, but betting nothing would be a nice feature.
btc-mike
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1001



View Profile
March 19, 2014, 03:03:59 AM
 #40

...
Demos:
btcircle.com/dice/OrangeSquare (new skin demo)
btcircle.com/dice/ClassicPurple (classic skin demo)

Use free bitcoin option to try it out for yourself!
...
I can't try these in free mode since they both say "Invalid captcha!" when claiming btc. Are they working for you guys?

And obviously you cant bet zero, but betting nothing would be a nice feature.

You can bet zero. His daemon died. The site is dead until he restarts it.

Maybe that should be an update. Watchdog for the daemon.
Pages: « 1 [2] 3 4 5 6 7 8 9 10 11 12 13 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!