I started with an opensource code of an XYZ coin, I changed nNonce and timestamp in the source to generate new genesishash and hashMerkleRoot, steps I did are
1. I removed both these hashes and left field empty (nothing in inverted commas)
2. I changed Linux timestamp to yesterday
3. I changed few digits of nNonce (a little variation)
4. compiled the source
5. run it and got error
6. got these two hashes from debug file in /root/.xyzcoin/
7. replaced in original main.h and main.cpp (with and without "0x" before hashes)
8. compiled the code again and run it
now I am having this error in debug "ERROR: CheckProofOfWork() : hash doesn't match nBits"
and xyzcoind crashes instantaneously with the following error
bool LoadBlockIndex(bool): Assertion `block.CheckBlock()' failed.
Aborted (core dumped)
It would be great if you guide me where am I doing wrong, I have already tried various combinations and have been working on it since last 3-4 days and since yesterday I cannot even sleep, I am stuck at the very beginning of work so I am bit worried about completing my degree in time.
I am a student, so it is difficult for me to announce a bounty for this solution (I have seen posts with bounties here but I sincerely apology currently I can't)
Thanking you in anticipation for your kind responses