UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
348 stars 394 forks source link

Peercoin PPC sha256 mining - still incompatible? #84

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hallo. Thank you for your great efforts in improving the dead NOMP project. i saw your great namecoin fork. but one important coin is still missing:

Peercoin uses a different RPC structure, so the pool can not start. the problems are documented here: https://github.com/zone117x/node-stratum-pool/issues/67

UNOMP can not start pool: Could not start pool, error with init batch RPC call: {"code":-32700,"message":"Parse error"} UNOMP can not get profit: [ERROR] [default] - Profit PPC Error while reading daemon info: {"error":{"code":-8,"message":"Invalid mode"},"response":null,"instance" ...

are there any ideas how to fix it? possibly also a fork? or we could build a "proxy" between PPC daemon and UNOMP? there is a codebase here: https://github.com/doomhz/node-peercoin , but i don't know how to implement it. there is no example for the "server" part of the script..

aryabiz commented 8 years ago

getting ~/nomp$ node init.js 2016-02-15 17:16:31 [POSIX] [Connection Limit](Safe to ignore) POSIX module not installed and resource (connection) limit was not raised 2016-02-15 17:16:31 [Master] [CLI] CLI listening on port 17117 2016-02-15 17:16:31 [Master] [PoolSpawner] Spawned 1 pool(s) on 1 thread(s) 2016-02-15 17:16:32 [Switching] [Setup](Thread 1) Loading last proxy state from redis 2016-02-15 17:16:34 [Pool] [peercoin](Thread 1) Could not start pool, error with init batch RPC call: {"code":-32700,"message":"Parse error"}

Need Help

ghost commented 8 years ago

we should wait.. 15 days ago, a new project was forked.. but no commits yet.. https://github.com/UNOMP/ppcoin

sigwo commented 8 years ago

Works fine afaik.

ghost commented 8 years ago

as far as you know? we have two users here who proved the opposite!? the original version does not work..

so we can speak here about your fork https://github.com/UNOMP/ppcoin ( Issues are disabled there.. ). it does not compile for me?

make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/version.o version.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/netbase.o netbase.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/addrman.o addrman.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/crypter.o crypter.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/user/ppcoin/src -I/home/user/ppcoin/src/obj -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/key.o key.cpp
key.cpp:123:6: error: prototype for ‘void CKey::SetCompressedPubKey(bool)’ does not match any in class ‘CKey’
 void CKey::SetCompressedPubKey(bool fCompressed)
      ^
In file included from key.cpp:10:0:
key.h:116:10: error: candidate is: void CKey::SetCompressedPubKey()
     void SetCompressedPubKey();
          ^
make: *** [obj/key.o] Error 1

https://github.com/ppcoin/ppcoin compiles without problems..

sigwo commented 8 years ago

Ok, fixed the problem. Use their repo.

ghost commented 8 years ago

Hi, ppcoin still incompatible. Can you also explain "Ok, fixed the problem. Use their repo."? Thanks