This is a patch for double deposit bug. ...
/var/www/content/cron/check_deposits.php
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]')");
+ }
Note: This is a fix for Coindice 2, Coindice 3 implemented their own fix.