z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
291 stars 437 forks source link

zcash testnet ERROR: (We thought a block was found but it was rejected by the daemon) (ProcessNewBlock: AcceptBlock FAILED) #349

Closed c2h2 closed 5 years ago

c2h2 commented 6 years ago

zcash testnet mining ERROR

Linux 16.04 running z-nomp and testnet zcash deamon.

from .zcash/testnet3/debug.log:

...
2018-06-06 18:00:46 ERROR: ContextualCheckTransaction: overwinter is active
2018-06-06 18:00:46 ERROR: ProcessNewBlock: AcceptBlock FAILED
2018-06-06 18:00:46 ERROR: ReadBlockFromDisk: OpenBlockFile failed for CBlockDiskPos(nFile=-1, nPos=0)
... and repeat

mining program tells the miner connects via stratum+tcp ok, and getting job ok

this is frontend: http://45.76.158.225:8080/workers/tmBURopfSysgy2aSXMLQ15Ck47wipfVq5SH

Everytime reproduce

Expected behaviour

I should be able to mine some blocks (given network only ~20Sols/s, One GPU is output 300+Sols/s)

Actual behaviour + errors

Z-nomp reports:

2018-06-06 18:06:48 [Pool]      [zcash_testnet] (Thread 1) We thought a block was found but it was rejected by the daemon, share data: {"job":"ccdd","ip":"::ffff:58.32.23.248","port":3032,"worker":"tmBURopfSysgy2aSXMLQ15Ck47wipfVq5SH.xxx","height":247961,"difficulty":1,"shareDiff":"1.13926462","blockDiff":0.301610833,"blockDiffActual":0.301610833,"blockHash":"000705a69d2839a18fa3e09b4786cb8641fd66d1e135eaf504216ecceb5baf17","error":{"unknown":"check coin daemon logs"}}
2018-06-06 18:06:53 [Pool]      [zcash_testnet] (Thread 1) Submitted Block using submitblock successfully to daemon instance(s)

The version of Zcash you were using:

Version = Zcash Daemon version v1.1.1-b4874e9

Machine specs:

root@vultr:~# ~/zcash/src/zcash-cli listunspent
[
]
root@vultr:~# ~/zcash/src/zcash-cli getinfo
{
  "version": 1010050,
  "protocolversion": 170005,
  "walletversion": 60000,
  "balance": 0.00000000,
  "blocks": 247965,
  "timeoffset": 0,
  "connections": 8,
  "proxy": "",
  "difficulty": 76.26976433892325,
  "testnet": true,
  "keypoololdest": 1528304699,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00000100,
  "errors": ""
}

anyone knows?

sennevb commented 6 years ago

What's your config in coins folder

c2h2 commented 6 years ago

Thanks for the reply, default coins folder, untouched, do I need to change anything?

Tomas-M commented 5 years ago

I am struggling with the same problem. Did you solve it anyhow?

c2h2 commented 5 years ago

with my custom patch and v1.1.0 zcash testnet. it‘s working!and v4 transaction is also implemented by me. Thanks to @hellcatz!, will donate some coins to him.

https://github.com/c2h2learnstocode/bitcoinjs-lib/commit/55f5ec4876a9527c409f3daeced28f5b9315db14

osheen2241 commented 5 years ago

Hi, are you able to mine block on the main net using your workaround? @c2h2