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! #16

Open
trustethorg opened this issue Mar 20, 2018 · 0 comments
Open

digibyte coin - groestlmyriad coin block-rejected! #16

trustethorg opened this issue Mar 20, 2018 · 0 comments

Comments

@trustethorg
Copy link

trustethorg commented Mar 20, 2018

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

changed things:
multi-hashing support myr-groestl for digibyte.
getinfo api -> getblockchaininfo() , getnetworkinfo() , ...
for interfacing with digibyte latest daemon.
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":"18x.x.x.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 ?
following 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": "no---",
            "password": "D5wwk5kzlQSdCHi------------------p"
        }
    ],

    "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

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

1 participant