Giter Club home page Giter Club logo

z-nomp-bitcoin-gold's People

Contributors

bluecircle avatar btcdrak avatar damianblack avatar ddfault avatar elbandi avatar hardx4 avatar hellcatz avatar iangcarroll avatar jagottsicher avatar jmprcx avatar katxi avatar litwilly avatar lludlow avatar martin-key avatar mculp avatar nicoschtein avatar nomp avatar ob1100 avatar ondalf avatar pcperfect avatar sennevb avatar sysmanalex avatar thenicholasnick avatar thrassos avatar vekexasia avatar waveringana avatar whyyk7 avatar xiaolin1579 avatar zacons avatar zone117x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

z-nomp-bitcoin-gold's Issues

"No new blocks for 55 seconds" & miners never find or submit shares

Followed the guide, the daemon is up and working, pool is up and running, miners connect, but they never find a share, and nomp just reports "No new blocks for 55 seconds" over and over again.

No ideas what else to check or look for.. been over every config at least 10 times.

Problem with equihash verify

Hi

I'm getting this error after a share is found:

/home/pooluser/.nvm/versions/node/v8.9.4/bin/node: symbol lookup error: /home/pooluser/z-nomp-bitcoin-gold/node_modules/stratum-pool/node_modules/equihashverify/build/Release/equihashverify.node: undefined symbol: _ZN8EquihashILj200ELj9EE15InitialiseStateER32crypto_generichash_blake2b_state

Please assist

Error: Expected property "1" of type Satoshi, got Number 125000000000269150

Running Bitcoin Gold wallet, with complete blockchain.

When I start up z-nomp, the following error is displayed. This error only started showing after 100% of the blockchain was downloaded.

[email protected] start /root/z-nomp
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
2017-11-15 14:56:11 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2017-11-15 14:56:11 [Master] [CLI] CLI listening on port 17117
2017-11-15 14:56:11 [PPLNT] [bitcoin gold] TimeShare processing setup with redis (127.0.0.1:6379)
2017-11-15 14:56:11 [Master] [PoolSpawner] Spawned 1 pool(s) on 2 thread(s)
2017-11-15 14:56:12 [Website] [Server] Website started on 0.0.0.0:80
2017-11-15 14:56:12 [Payments] [bitcoin gold] minimum paymentInterval of 120 seconds recommended.
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold requireShielding: true
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold minConf: 10
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold payments txfee reserve: 0.0004
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold maxBlocksPerPayment: 3
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold PPLNT: false, time period: 0.51
2017-11-15 14:56:12 [Payments] [bitcoin gold] Error with payment processing daemon {"code":-32601,"message":"Method not found"}
2017-11-15 14:56:12 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) Share processing setup with redis (127.0.0.1:6379)
2017-11-15 14:56:12 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) Share processing setup with redis (127.0.0.1:6379)
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) No rewardRecipients have been setup which means no fees will be taken
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) No rewardRecipients have been setup which means no fees will be taken

/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 125000000000248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66

/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 125000000000248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66
2017-11-15 14:56:12 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...

NOAuth Password Issues when using password with Redis

Hi everyone,

I have been using this pool server flawlessly for a while now however I just moved over to a new redis provider and now I have to use a password to connect as opposed to running redis locally and using no password.

I checked the code and it seems to support a redis password.

Here is what I get when I add the password to the config.json file:

nomp@NOMP-test:~/z-nomp-bitcoin-gold$ sudo npm start

[email protected] start /home/nomp/z-nomp-bitcoin-gold
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js

2018-01-05 15:28:47 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2018-01-05 15:28:47 [Master] [CLI] CLI listening on port 17117

events.js:136
throw er; // Unhandled 'error' event
^
ReplyError: Ready check failed: NOAUTH Authentication required.
at parseError (/home/nomp/z-nomp-bitcoin-gold/node_modules/redis-parser/lib/parser.js:193:12)
at parseType (/home/nomp/z-nomp-bitcoin-gold/node_modules/redis-parser/lib/parser.js:303:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

If anyone can point me in the right direction that would be great, I believe i have checked all of the libs and even compared to a plain nomp and unomp I configured for redis authenticaiton to work. I am using Redis 4.0.6

Many thanks in advance for any help!

Error: Invalid checksum

2018-03-03 13:34:42 [Master] [PoolSpawner] Fork 3 died, spawning replacement worker...
2018-03-03 13:34:44 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2018-03-03 13:34:44 [Pool] [bitcoin gold] (Thread 1) Share processing setup with redis (127.0.0.1:6379)
/home/bcmonster/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:41
if (!payload) throw new Error('Invalid checksum')
^

Error: Invalid checksum
at Object.decode (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:41:25)
at Object.fromBase58Check (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/node_modules/bitcoinjs-lib-zcash/src/address.js:11:27)
at Object.exports.createGeneration (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/transactions.js:75:42)
at new BlockTemplate (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/blockTemplate.js:36:35)
at JobManager.processTemplate (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/jobManager.js:144:32)
at /home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/pool.js:581:66
at itemFinished (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:155:36)
at /home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:169:17
at parseJson (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:85:17)
at IncomingMessage. (/home/bcmonster/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:95:17)
2018-03-03 13:34:44 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...

Andy Ideas?

incorrect luck days

In libs/stats.js

 var _blocktime = 160;
				var _networkHashRate = parseFloat(coinStats.poolStats.networkSols) * 1.2;
				var _myHashRate = (coinStats.hashrate / 1000000) * 2;
				coinStats.luckDays =  ((_networkHashRate / _myHashRate * _blocktime) / (24 * 60 * 60)).toFixed(3);
coinStats.luckHours = ((_networkHashRate / _myHashRate * _blocktime) / (60 * 60)).toFixed(3);

But BTG block time is 600sec

base.js invalid checksum

i keep getting this error

2017-11-24 16:22:26 [Master] [PoolSpawner] Fork 2 died, spawning replacement worker...
2017-11-24 16:22:26 [Pool] [bitcoin gold] (Thread 2) Share processing setup with redis (127.0.0.1:6379)
/home/mylin/Pools/znomp-btg/node_modules/bs58check/base.js:40
if (!payload) throw new Error('Invalid checksum')
^

Error: Invalid checksum
at Object.decode (/home/mylin/Pools/znomp-btg/node_modules/bs58check/base.js:40:25)
at Object.fromBase58Check (/home/mylin/Pools/znomp-btg/node_modules/bitcoinjs-lib-zcash/src/address.js:8:27)
at Object.exports.createGeneration (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/transactions.js:75:42)
at new BlockTemplate (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/blockTemplate.js:36:35)
at JobManager.processTemplate (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/jobManager.js:141:32)
at /home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/pool.js:581:66
at itemFinished (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/daemon.js:155:36)
at /home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/daemon.js:169:17
at parseJson (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/daemon.js:85:17)
at IncomingMessage. (/home/mylin/Pools/znomp-btg/node_modules/stratum-pool/lib/daemon.js:95:17)
2017-11-24 16:22:26 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...
/home/mylin/Pools/znomp-btg/node_modules/bs58check/base.js:40
if (!payload) throw new Error('Invalid checksum')
^

Chechsum error

If i start the pool it seems to be working ok before this happens:

/home/btcgpu/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:40
    if (!payload) throw new Error('Invalid checksum')
                  ^

Error: Invalid checksum
    at Object.decode (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:40:25)
    at Object.fromBase58Check (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/bitcoinjs-lib-zcash/src/address.js:8:27)
    at Object.exports.createGeneration (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/transactions.js:75:42)
    at new BlockTemplate (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/blockTemplate.js:36:35)
    at JobManager.processTemplate (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/jobManager.js:141:32)
    at /home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/pool.js:581:66
    at itemFinished (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:155:36)
    at /home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:169:17
    at parseJson (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:85:17)
    at IncomingMessage.<anonymous> (/home/btcgpu/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:95:17)
2017-11-19 19:06:14 [Master]	[PoolSpawner] Fork 1 died, spawning replacement worker...

Please help me

Payment queue issue

Every time z-nomp makes a payment, the next payment in the queue remains in this error for a long period of time, I'd like to know how to resolve this error. The system worked well, payments are being sent, but only after a long period of time. And this always happens after a payment. Error on red color.

capturar 4

Add SSL to pages

I am trying to add SSL to the z-nomp website, and I get errors trying to start the pool. I am 99.99% sure it is user error.

On the config.json, under the tls options, are we looking for a path to the certificate and a path to the key file? what format does the cert and the key need to be in? Do you have an example of the tls options in the config.json?

not found blocks

use speed nicehash was be 200k/s at time 24h
in web see
luck - 0.4 day
but not found blocks.
no error, nothink...
now stop nicehash and only farm..
Conf and logs:
bitcoin conf -
rpcuser=-----
rpcpassword=-----
server=1
rpcthreads=8
rpcworkqueue=32
banscore=100000
rpcallowip=192.168.1.180/255.255.255.0
rpcport=8332
timeout=768
gen=0
listen=1
maxconnections=250
addnode=109.201.133.93:8338
addnode=178.63.11.246:8338
addnode=188.120.223.153:8338
addnode=79.137.64.158:8338
addnode=78.193.221.106:8338

Whats happen?
78.153.4.77:8085

Strange entires showing in z-nomp

It it normal to be seeing entries like this? I have just started seeing these when z-nomp starts and a miner joins

Share processor Redis execution time: 1 Executed operations: 44
Execution time: 1 PileUp: 0 Executed operations: 14
Share processor Redis execution time: 1 Executed operations: 9
Execution time: 0 PileUp: 0 Executed operations: 3
Share processor Redis execution time: 1 Executed operations: 24
Execution time: 1 PileUp: 0 Executed operations: 8
Execution time: 0 PileUp: 0 Executed operations: 8
Share processor Redis execution time: 1 Executed operations: 24
Share processor Redis execution time: 1 Executed operations: 21
Execution time: 1 PileUp: 0 Executed operations: 7
Execution time: 1 PileUp: 0 Executed operations: 7
Share processor Redis execution time: 3 Executed operations: 21
Share processor Redis execution time: 0 Executed operations: 18
Execution time: 1 PileUp: 0 Executed operations: 6
Share processor Redis execution time: 2 Executed operations: 27
Execution time: 1 PileUp: 0 Executed operations: 9
Share processor Redis execution time: 1 Executed operations: 33
Execution time: 0 PileUp: 0 Executed operations: 11
Share processor Redis execution time: 1 Executed operations: 21
Execution time: 1 PileUp: 0 Executed operations: 7
Execution time: 1 PileUp: 0 Executed operations: 10
Share processor Redis execution time: 3 Executed operations: 30
Share processor Redis execution time: 1 Executed operations: 24
Execution time: 0 PileUp: 0 Executed operations: 8

Get some of your cpu back when being hammered (Discussion)

Hey guys, I wanted to say that we got hammered yesterday and had 8 cores pegged on a few servers. This was due to attacks and a lot of miners.

I was able to bring back some cpu by removing the graph stats container and the related javascript..

this is more of a discussion on server load help.

TypeError: Cannot read property 'getStratumServer' of undefined

I am getting follwing error when connecting nheqminer to my pool -

/home/ubuntu/z-nomp-bitcoin-gold/libs/poolWorker.js:274
pools[initalPool].getStratumServer().handleNewClient(socket);
^

TypeError: Cannot read property 'getStratumServer' of undefined
at Server. (/home/ubuntu/z-nomp-bitcoin-gold/libs/poolWorker.js:274:47)
at Server.emit (events.js:160:13)
at Object.onconnection (net.js:1582:8)
at onconnection (internal/cluster/child.js:168:12)
at Worker.onmessage (internal/cluster/child.js:43:7)
at process.onInternalMessage (internal/cluster/utils.js:42:8)
at process.emit (events.js:165:20)
at emit (internal/child_process.js:790:12)
at process._tickCallback (internal/process/next_tick.js:152:19)
2018-02-13 05:27:03 [Master] [PoolSpawner] Fork 5 died, spawning replacement worker...

nheqminer show following error -
[10:57:22][0x00001270] stratum | Starting miner
[10:57:22][0x00001270] stratum | Connecting to stratum server 13.59.122.197:3333
[10:57:23][0x00001270] stratum | Connected!
[10:57:23][0x00001270] stratum | read_until: End of file
[10:57:23][0x00001270] stratum | Reconnecting in 3 seconds...

btg.txt
config.txt
pool.txt

Add currency

Hello,
how to add new currency? For example btg?

npm update

install go good. and pool working, but when do npm update see this error

root@ubuntu:/home/luc/z-nomp-bitcoin-gold# npm update
npm WARN prefer global [email protected] should be installed with -g

[email protected] install /home/luc/z-nomp-bitcoin-gold/node_modules/bignum
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v51-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI, glibc) (falling back to source compile with node-gyp)

log startup error

Hi when starting znomp-bitcoin-gold I get the following erreor and cant seem to resolve it can anyone help please. Many Thanks

[email protected] start /home/jamie/z-nomp-bitcoin-gold

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js

/home/jamie/z-nomp-bitcoin-gold/libs/logUtil.js:31
var logDir = conflog.logging.files.directory;
^

TypeError: Cannot read property 'files' of undefined
at Object. (/home/jamie/z-nomp-bitcoin-gold/libs/logUtil.js:31:30)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object. (/home/jamie/z-nomp-bitcoin-gold/init.js:11:18)
at Module._compile (module.js:641:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/jamie/.npm/_logs/2017-12-08T03_07_18_792Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.