sau412 / coinhive_pool Goto Github PK
View Code? Open in Web Editor NEWOnline mining pool based on browser miners (discontinued)
License: GNU General Public License v3.0
Online mining pool based on browser miners (discontinued)
License: GNU General Public License v3.0
Hi, i found a error in your freebitcoin/freedogecoin script.
The script should read something from the database, but the column does not exist at all. I reworked it once.
First i have added this in db_scheme:
CREATE
TABLE results
(
uid
int(11) NOT NULL,
user_uid
int(11) NOT NULL,
platform
varchar(100) COLLATE utf8_unicode_ci NOT NULL,
value
double NOT NULL,
address
varchar(255),
timestamp
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
After that:
function update_user_result_id($user_uid,$platform,$new_id) {
$user_uid_escaped=db_escape($user_uid);
$platform_escaped=db_escape($platform);
$new_id_escaped=db_escape($new_id);
$exists=db_query_to_variable("SELECT 1 FROM `results` WHERE `platform`='$platform_escaped' AND `address`='$new_id_escaped'");
if(!$exists) {
db_query("INSERT INTO `results` (`user_uid`,`platform`,`address`,`value`) VALUES ('$user_uid_escaped','$platform_escaped','$new_id_escaped',0)
ON DUPLICATE KEY UPDATE address
=VALUES(address
)");
}
}
And:
echo "id $id dogecoin $dogecoin\n";
$id_escaped=db_escape($id);
$user_uid=db_query_to_variable("SELECT user_uid
FROM results
WHERE address
='$id_escaped'");
if(!$user_uid) {
echo "User not found\n";
continue;
}
$user_uid_escaped=db_escape($user_uid);
$dogecoins_balance=db_query_to_variable("SELECT value
FROM results
WHERE address
='$id_escaped'");
$balance_diff=$dogecoin-$dogecoins_balance;
if($balance_diff>0) {
echo "New $balance_diff DOGE, add to $user_uid\n";
update_user_results($user_uid,"Freedogecoin",$dogecoin);
} else {
echo "No balance change";
}
On start, the coinimp miner should be there. Not the coinhive miner.
And the assets not working, balance everytime at zero.
I tried to correct that, but i dont have enough time and i am not on my pc, iam away.
Quick tipp.
Hi @sau412 , I'm a graphic designer and I want to contribute on your project, I can make a logo for your project if you want to. What do you think?
I read today that coinhive was being discontinued. This is right after I went to sign up with them to try out your software.
Is there any alternative?
long time ago coinhive has stopped their service i just wanted to know is this is still working ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.