Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digibyte coin - groestlmyriad coin block-rejected! #140

Closed
trustfarm-dev opened this issue Mar 19, 2018 · 8 comments
Closed

digibyte coin - groestlmyriad coin block-rejected! #140

trustfarm-dev opened this issue Mar 19, 2018 · 8 comments

Comments

@trustfarm-dev
Copy link

trustfarm-dev commented Mar 19, 2018

digibyte coin - groestlmyriad coin block-rejected!

I've setup digibyte myriad groestl algorithm for POOL
also, changed to support myr-groestl hashing.

changed things:

  1. multi-hashing support myr-groestl for digibyte.
  2. getinfo api -> getblockchaininfo() , getnetworkinfo() , ...
    for interfacing with digibyte latest daemon.
  3. adds algoProperties.js to support myr-groestl

procedure to produce.

There's several days of mining. finally I found 3 blocks.
but, NOMP said
"(Thread 4) We thought a block was found but it was rejected by the daemon, share data: {"job":"a8d","ip":"182.252.10.64","port":3270,"worker":"D8xq5XPZKAYMQ-----------------------,"height":6260408,"blockReward":79656798873,"difficulty":32,"shareDiff":"362533.21566225","blockDiff":314672.733261021,"blockDiffActual":314672.733261021,"blockHash":"0000000000002e46eb5923a74fe9150834595ead2c891364b2b0e673f02ba2f6"}
2018-03-17 04:47:41 [Pool] [digibyte-groestl] (Thread 4) Share accepted at diff 32/362533.21566225 by D8xq5XPZKAYMQC314V5z-------------- [x.x.x.x]
"

I don't know , why this happen, and digibyte daemon logs says nothing.

ambiguity points

I also need to change node-stratum on jobManager.js

for groestlmyriad ?
above is original code of node-stratum

    var coinbaseHasher = (function(){
        switch(options.coin.algorithm){
            case 'keccak':
            case 'blake':
            case 'fugue':
            case 'groestl':
                if (options.coin.normalHashing === true)
                    return util.sha256d;
                else
                    return util.sha256;
            default:
                return util.sha256d;
        }
    })();

setup what I tested.

coins/digibyte.groestl.conf

{
    "name": "digibyte-groestl",
    "symbol": "DGB",
    "algorithm": "groestlmyriad"
}

pool_configs/digibyte.conf

{
    "enabled": true,
    "coin": "digibyte.groestl.json",

    ....

    "daemons": [
        {
            "host": "127.0.0.1",
            "port": 14022,
            "user": "n-----",
            "password": "D5-------------------------P1LY2pOp"
        }
    ],

    "p2p": {
        "enabled": true,
        "host": "127.0.0.1",
        "port": 12024,
        "disableTransactions": false
    },
    

digibyte daemon configuration.

rpcport=14022
port=12024
daemon=1
listen=1
server=1
algo=groestl
rpcworkqueue=32

blocknotify=/home/nomp/nomp/nodeomp/scripts/blocknotify 127.0.0.1:17117 digibyte-groestl %s
@trustfarm-dev
Copy link
Author

@foxer666 's comments on sha256d hashing on blockheader.

@liang55
Copy link

liang55 commented Jul 5, 2018

help me.
how setup digibyte myriad groestl algorithm for POOL?

.digibyte/digibyte.config

rpcuser=digibyteuser
rpcpassword=digibytepassword
algo=groestl
rpcport=20102
port=21102

coins/digibyte.groestl.conf

{
    "name": "digibyte-groestl",
    "symbol": "DGB",
    "algorithm": "groestlmyriad"
}

changed things:
1.adds algoProperties.js to support myr-groestl
2.change node-stratum on jobManager.js

but ,the miner does not work properly in the myr-gr algorithm. first of all, my 100GH computing power showed 200MH in the NOMP myr-gr algorithm, and then I did not find a new block for some day. does your myr-gr mine pool work properly, can you give your myr-gr pool address? thank you

@trustfarm-dev
Copy link
Author

@liang55 refer private pool : http://mineralpool.co.kr:3001 (digibyte-groestl)
refer :: https://github.com/trustfarm-dev/node-open-mining-portal
https://github.com/trustfarm-dev/node-open-mining-portal
github.com/trustfarm/node-stratum-pool.git
https://github.com/trustfarm-dev/node-multi-hashing

Any good PR I pleased to accpets.

@liang55
Copy link

liang55 commented Jul 6, 2018

your git project executes npm install and it keeps reporting errors.

make: *** [Release/obj.target/multihashing/multihashing.o] Error 1
@trustfarm-dev

@trustfarm-dev
Copy link
Author

trustfarm-dev commented Jul 6, 2018

It is node version issue.
You can solve it by yourself.
Good luck

@liang55
Copy link

liang55 commented Jul 6, 2018

make: *** [Release/obj.target/multihashing/multihashing.o] Error 1
make: Leaving directory /data/node-open-mining-portal/node_modules/multi-hashing/build' gyp ERR! build error gyp ERR! stack Error: makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/src/node-v8.4.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 2.6.32-642.13.1.el6.x86_64 gyp ERR! command "/usr/local/src/node-v8.4.0-linux-x64/bin/node" "/usr/local/src/node-v8.4.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /data/node-open-mining-portal/node_modules/multi-hashing gyp ERR! node -v v8.4.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install:node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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! /root/.npm/_logs/2018-07-06T13_42_49_736Z-debug.log

@liang55
Copy link

liang55 commented Jul 6, 2018

@trustfarm-dev
i use v0.10.26 ,still reporting an error

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/src/node/node-v0.10.36-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-642.13.1.el6.x86_64
gyp ERR! command "node" "/usr/local/src/node/node-v0.10.36-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/node-open-mining-portal/node_modules/stratum-pool/node_modules/multi-hashing
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the multi-hashing package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls multi-hashing
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-642.13.1.el6.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--unsafe-perm"
npm ERR! cwd /data/node-open-mining-portal
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYC

@liang55
Copy link

liang55 commented Jul 6, 2018

thanks,i have succeeded,
i have a fix :
//multiplier: Math.pow(2, 8)
I found three blocks and got a reward, but there is no Blocks information in the mine.
And the mining award did not automatically enter the miner's account.
#153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants