Post
Topic
Board Announcements (Altcoins)
Re: BiblePay | 10% Charity | POBH CPU | Sanctuaries (Masternodes) | Orphans
by
Nipar
on 30/10/2019, 08:25:30 UTC
Having this error trying to install NOMP pool:
Code:
Error: Cannot find module 'bignum'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object. (/pool/nomp/node_modules/stratum-pool/algoProperties.js:1:76)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
There were similar errors during "npm update".
After rebooting and running as su
Code:
/pool/nomp/npm install
the bignum issue resolved by actually downloading and compiling it.
I now have an operational NOMP pool on my local network. (still need to sort out ports) I will use this to just to try things at the moment.

I also had to copy biblepay_example.json to biblepay.json in /pool/nomp/coins

I submitted a pull request based on your experience and mine.

had some issues with npm too and had to use:

npm install -g bignum

had to run as root, but not use sudo. sudo seems to installs npm in a different place.

for pool_configs -- biblepay.json

daemons and payment_processing is your rpcport in biblepay.conf
for p2p port it is same as port in biblepay.conf (usually port 40000)

the duplicate shares continue to be an issue. i'm noticing on the node init.js output log, the curtime and nonce repeat. I would think the curtime should constantly increase, but it seems to be static. nTime + nElapsed = curtime would be interesting to toy with.

I'll have to cpu mine a different coin just to see how it behaves.

I also read there's a duplicate share exploit in NOMP which has a simple fix. https://github.com/zone117x/node-open-mining-portal/issues/430
Code:
missing data 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff20034c5b02044843b95d08
[2019-10-30 04:22:17] submit_upstream_work::3 stratum_send_line failed - truncated hex
[2019-10-30 04:22:17] ...retry after 30 seconds
[2019-10-30 04:22:27] thread 2: 1642663746 hashes, 30596 khash/s
[2019-10-30 04:22:30] thread 6: 1098928 hashes, 19.38 khash/s
[2019-10-30 04:22:30] thread 1: 1099372 hashes, 19.38 khash/s
[2019-10-30 04:22:30] thread 3: 1094697 hashes, 19.28 khash/s
[2019-10-30 04:22:30] thread 7: 1094578 hashes, 19.24 khash/s
[2019-10-30 04:22:30] thread 5: 1099390 hashes, 19.21 khash/s
[2019-10-30 04:22:41] thread 4: 199758724 hashes, 2928 khash/s

missing data 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff20034c5b02044843b95d08
[2019-10-30 04:22:47] submit_upstream_work::3 stratum_send_line failed - truncated hex
[2019-10-30 04:22:47] ...retry after 30 seconds
[2019-10-30 04:23:06] thread 0: 2969508352 hashes, 31698 khash/s

Error in stratum-gen-work2; poolhex too short

I think I might try reinstalling. installing pool with "sudo su" seems to mean that I have to run is as "sudo su" trying the normal sudo way it won''t launch right....
Will try again.