Hi,
I implemented a new Hard memory algo, everything works perfectly , genesis block, nTime, etc are set and all good!
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 8); // low diff for very slow algo
[color=blue]genesis.nBits[/color] = 0x2000ffff; // i tried this
genesis.nBits = bnProofOfWorkLimit.GetCompact(); // and tried this and i believe its same as above
tow clients(wallets) working on 2 PCs, one is solo mining ~500 Hashes/s
Block are being generated on PC one and PC tow is also accepting them.
BUT after each block found i get the lines in red
WHY ?:
hashmeter 532 hash/s
CheckWork() : new proof-of-work block found
proof hash: 007e776d95475f275c91dec26312e28045b3315f6ee3b7b4dc310def89db8468
target: 00ffff0000000000000000000000000000000000000000000000000000000000
CBlock(hash=007e776d95475f275c91dec26312e28045b3315f6ee3b7b4dc310def89db8468, ver=7, hashPrevBlock=00c5c963dcbadb709800f65bda61711afbbfaa2a588581ac20aae3b3d389c3ea, hashMerkleRoot=31a680a8caf767566266c184c733d807005f9242534900f51fea15c017613fa3, nTime=1440627052, nBits=2000ffff, nNonce=246, vtx=1, vchBlockSig=)
Coinbase(hash=31a680a8caf767566266c184c733d807005f9242534900f51fea15c017613fa3, nTime=1440626603, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, 4294967295), coinbase 530101)
CTxOut(nValue=3.00, scriptPubKey=OP_DUP OP_HASH160 cad38bd917f84bfb078f9a8d5536cc8c462a06f4 OP_EQUALVERIFY OP_CHECKSIG)
vMerkleTree: 31a680a8caf767566266c184c733d807005f9242534900f51fea15c017613fa3
generated 3.00
keypool keep 5
AddToWallet 31a680a8caf767566266c184c733d807005f9242534900f51fea15c017613fa3 new
SetBestChain: new best=007e776d95475f275c91dec26312e28045b3315f6ee3b7b4dc310def89db8468 height=3 trust=1024 blocktrust=256 date=08/26/15 22:10:52
ProcessBlock: ACCEPTED
keypool added key 106, size=101
keypool reserve 6
Running Miner with 1 transactions in block (174 bytes)
hashmeter 524 hash/s
ERROR: CheckProofOfWork() : hash doesn't match nBits
ERROR: CBlock::ReadFromDisk() : errors in block header