jgarzik / pushpool Goto Github PK
View Code? Open in Web Editor NEWBitcoin mining pool server (getwork-based; obsolete)
License: Other
Bitcoin mining pool server (getwork-based; obsolete)
License: Other
bitcoin push-mining pool server. Dependencies: libevent Event-driven async I/O libmemcached memcached client pthreads POSIX threads zlib gzip compression jansson JSON OpenSSL's libcrypto sha256 libcurl HTTP client
I'm getting this when I try to build:
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -pthread -I/usr/include/mysql -fPIC -pipe -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -g -I/usr/include -g -O2 -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.c
config.c: In function ‘read_config’:
config.c:305:2: warning: passing argument 2 of ‘json_loads’ makes integer from pointer without a cast [enabled by default]
/usr/include/jansson.h:219:9: note: expected ‘size_t’ but argument is of type ‘struct json_error_t ’
config.c:305:2: error: too few arguments to function ‘json_loads’
/usr/include/jansson.h:219:9: note: declared here
make[1]: ** [config.o] Error 1
Any suggestions on where the problem may be? Is it my jansson library version (2.0.1)?
Here's an example from mysql.log:
130420 4:25:02 56 Prepare SELECT `password` FROM `pool_worker` WHERE `username` = ?
56 Close stmt
56 Prepare SELECT `password` FROM `pool_worker` WHERE `username` = ?
56 Close stmt
56 Prepare SELECT `password` FROM `pool_worker` WHERE `username` = ?
56 Close stmt
56 Prepare SELECT `password` FROM `pool_worker` WHERE `username` = ?
56 Close stmt
The miner sent a username of "test.1" but it's not being used in the query.
Is srv.db_sharelog enabled anywhere in the code? It doesn't look like I can activate it via command line params and I didn't see it get set anywhere. Logging the shares to a file works fine, however.
JSON parse failed in default example-cfg.json
sbin/pushpoold -E -F -D 2 -c ../pushpool/example-cfg.json
[2013-10-11 09:21:9.552407] Debug output enabled
[2013-10-11 09:21:9.553197] ../pushpool/example-cfg.json: JSON parse failed
Where find error? Please add to debug more information.
Using the Vs2012 Developer console:
C:\Users\Elycin\Documents>cd pushpool-master
C:\Users\Elycin\Documents\pushpool-master>cl server.c
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
server.c
server.c(24) : fatal error C1083: Cannot open include file: 'autotools-config.h
: No such file or directory
Here's my server.json:
http://pastebin.com/v8TJQb9Z
What do I have wrong?
Its owned by user, permissions are 777.
% SNIP %
checking for SQLite3 library >= 3.0.0... yes
checking for mysql_config... /usr/bin/mysql_config
checking for pg_config... no
no
./configure: line 5958: syntax error near unexpected token ,' ./configure: line 5958:
LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
-bash-3.2$
Line 5958:
LIBCURL_CHECK_CONFIG(, 7.10.1, ,
AC_MSG_ERROR([Missing required libcurl >= 7.10.1]))
Unless I'm doing something wrong?!
Version 0.5 (3 days ago)
Many Thanks!
Not sure how much you care about making the project work outside of a Linux sandbox, but it's failing to build for me on OS X due to it missing byteswap.h and endian.h (which OS X does not provide). I'd be deploying this to Linux in production anyway, but was hoping I could get it running locally for development purposes.
Thanks for your hard work!
i am running a pushpool for one coin
and set "rpc.target.bits" : 32, in my server.json
the working diff is 1.
every thing is working fine
but pushpool insert sharelog to my mysql database without difficulty info
i need more difficulty port
do you know hwo to fix it?
@jgarzik @ahmedbodi @electricintel @girino
Hello,
I have some big issues with "unkown-work".
Someone made already a thread here: http://forum.bitcoin.org/index.php?topic=27045.0
Would be nice if someone can help me.
Can someone help please?
Getting mysql pwdb query failed at fetch from Pushpool
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.