i've start to do the same. I think have resolve the problem of the 2 assert in chainparams.cpp (no more error on running myaltcoind file) with this script ( Altcoin Genesis block fails after changing block reward) that hash genesis:
assert(consensus.hashGenesisBlock == uint256S("0x12a765e3...."));
assert(genesis.hashMerkleRoot == uint256S("0x97ded9....."));
BUT i sill have an error when launching myaltcoind file:
ERROR : error : A fatal internal error occured, see debog.log for details
Segmentation fault (core dumped)
And the debug.log file don't give a useful problem. here's :
2018-02-26 17:37:41 Coin4coin version v0.15.1.0-unk
2018-02-26 17:37:41 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-02-26 17:37:41 Assuming ancestors of block 59c9b9d3fec105bdc716d84caa7579503d5b05b73618d0bf2d5fa639f780a011 have valid signatures.
2018-02-26 17:37:41 Setting nMinimumChainWork=00000000000000000000000000000000000000000000002ebcfe2dd9eff82666
2018-02-26 17:37:41 Using the 'standard' SHA256 implementation
2018-02-26 17:37:41 Default data directory /home/prof/.coin4coin
2018-02-26 17:37:41 Using data directory /home/prof/.coin4coin
2018-02-26 17:37:41 Using config file /home/prof/.coin4coin/coin4coin.conf
2018-02-26 17:37:41 Using at most 125 automatic connections (1024 file descriptors available)
2018-02-26 17:37:41 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-02-26 17:37:41 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-02-26 17:37:41 Using 0 threads for script verification
2018-02-26 17:37:41 scheduler thread start
2018-02-26 17:37:41 HTTP: creating work queue of depth 16
2018-02-26 17:37:41 No rpcpassword set - using random cookie authentication
2018-02-26 17:37:41 Generated RPC authentication cookie /home/prof/.coin4coin/.cookie
2018-02-26 17:37:41 HTTP: starting 4 worker threads
2018-02-26 17:37:41 init message: Verifying wallet(s)...
2018-02-26 17:37:41 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2018-02-26 17:37:41 Using wallet wallet.dat
2018-02-26 17:37:41 CDBEnv::Open: LogDir=/home/prof/.coin4coin/database ErrorFile=/home/prof/.coin4coin/db.log
2018-02-26 17:37:41 Cache configuration:
2018-02-26 17:37:41 * Using 2.0MiB for block index database
2018-02-26 17:37:41 * Using 8.0MiB for chain state database
2018-02-26 17:37:41 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-02-26 17:37:41 init message: Loading block index...
2018-02-26 17:37:41 Opening LevelDB in /home/prof/.coin4coin/blocks/index
2018-02-26 17:37:41 Opened LevelDB successfully
2018-02-26 17:37:41 Using obfuscation key for /home/prof/.coin4coin/blocks/index: 0000000000000000
2018-02-26 17:37:41 LoadBlockIndexDB: last block file = 0
2018-02-26 17:37:41 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2018-02-26 17:37:41 Checking all blk files are present...
2018-02-26 17:37:41 LoadBlockIndexDB: transaction index disabled
2018-02-26 17:37:41 Initializing databases...
2018-02-26 17:37:41 Pre-allocating up to position 0x1000000 in blk00000.dat
2018-02-26 17:37:41 Opening LevelDB in /home/prof/.coin4coin/chainstate
2018-02-26 17:37:41 Opened LevelDB successfully
2018-02-26 17:37:41 Using obfuscation key for /home/prof/.coin4coin/chainstate: 5ede9e4227910002
2018-02-26 17:37:41 init message: Rewinding blocks...
2018-02-26 17:37:41 block index 92ms
2018-02-26 17:37:41 init message: Loading wallet...
2018-02-26 17:37:41 nFileVersion = 150100
2018-02-26 17:37:41 Keys: 2002 plaintext, 0 encrypted, 2002 w/ metadata, 2002 total
2018-02-26 17:37:42 wallet 55ms
2018-02-26 17:37:42 setKeyPool.size() = 2000
2018-02-26 17:37:42 mapWallet.size() = 0
2018-02-26 17:37:42 mapAddressBook.size() = 1
2018-02-26 17:37:42 ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)
2018-02-26 17:37:42 *** Failed to read block
2018-02-26 17:37:42 Error: Error: A fatal internal error occurred, see debug.log for details
Can i have some help please ?