1
1
I'm getting this error in regtest mode after setgenerate RPC:
ERROR: CheckProofOfWork() : hash doesn't match nBits
After looking for error text in src I found a match in pow.cpp (obviously standing for proof of work) with following extract from code:
// Check proof of work matches claimed amount
if (hash > bnTarget)
return error("CheckProofOfWork() : hash doesn't match nBits");
Does it mean there's a target in regtest?If yes, isn't it contradicting to difficulty being 0?
OK. Thanks Pieter! But only, I'm not understanding your formulation of "[...] corresponding to 1 hash in 2 being valid [...]" ... Would you rephrase that, please? – Aliakbar Ahmadi – 2015-05-03T21:11:45.927
Of every two candidate block you try, one will be valid. – Pieter Wuille – 2015-05-04T09:18:23.440