Coin's Source code:
https://github.com/antimonycoin/antimonysourceSystem: Ubuntu 16.04 Server
Node version: 8.3.0
Mining Algo: NIST5
I am using NOMP + MPOS. Everything works fine, shares are accepted, but at submit block I get following error:
0|nomp-server | 2021-04-18 11:54:54 [Pool] [antimony] (Thread 1) Share accepted at diff 37.00292371/40.45611629 by miningexpert9120.mining [::ffff:188.166.161.62]
0|nomp-server | 2021-04-18 11:54:54 [MySQL] [antimony] Share inserted
0|nomp-server | 2021-04-18 11:54:55 [Pool] [antimony] (Thread 1) Submitted Block using submitblock successfully to daemon instance(s)
0|nomp-server | 2021-04-18 11:54:55 [Pool] [antimony] (Thread 1) We thought a block was found but it was rejected by the daemon, share data: {"job":"7a","ip":"::ffff:188.166.161.62","port":3032,"worker":"miningexpert9120.mining","height":5712,"
blockReward":1500000000,"difficulty":37.00292371,"shareDiff":"107.96353492","blockDiff":3.039774081,"blockDiffActual":3.039774081,
"blockHash":"00000000025f02b08b2449938e15158ee665b98201f491f5bccce9c02a767cb5"}
On Googling I found that it has something to do with the Block reward. The coin's block reward is 15, while NOMP block reward has so many zero.
Btw, error on coin daemon is as follows:
2021-04-18 11:56:09 ERROR: CheckProofOfWork() : hash doesn't match nBits
2021-04-18 11:56:09 ERROR: CheckBlockHeader() : proof of work failed
2021-04-18 11:56:09 ERROR: CheckBlock() : CheckBlockHeader failed
On checking the source code, I see that the error is certainly due to additional zeros in block reward:
// Check proof of work matches claimed amount
if (hash > bnTarget) {
if (Params().MineBlocksOnDemand())
return false;
else
return error("CheckProofOfWork() : hash doesn't match nBits");
}
here's my coin config for Nomp:
{
"name": "AntiMony",
"symbol": "ANTM",
"algorithm": "nist5"
}