I’ve following this information right here: Why can’t the genesis block coinbase be spent?
Tries to unlock the Genesis transaction in Litecoin model 0.21.2.1.
Step 1 – Disable skipping the genesis block (which is meant to maintain the bug as a part of consensus), Line 1818:
// Particular case for the genesis block, skipping connection of its transactions
// (its coinbase is unspendable)
if (block.GetHash() == chainparams.GetConsensus().hashGenesisBlock) {
if (!fJustCheck)
view.SetBestBlock(pindex->GetBlockHash());
// return true; <- remark this line out
}
Step 2 – Skip assertion of earlier block for genesis block, Line 1874:
if (block.GetHash() != chainparams.GetConsensus().hashGenesisBlock) {
assert(pindex->pprev);
}
Step 3 – Skip writing undo knowledge for genesis block, Line 1989:
if (block.GetHash() != chainparams.GetConsensus().hashGenesisBlock)
{
if (!WriteUndoDataForBlock(blockundo, state, pindex, chainparams))
return false;
}
To date the compilation and implementation of the modifications labored. However now the core will not begin anymore.
2023-02-03T04:05:55Z Utilizing obfuscation key for /dwelling/fluffelbuff/.litecoin/blocks/index: 0000000000000000
2023-02-03T04:05:55Z LoadBlockIndexDB: final block file = 0
2023-02-03T04:05:55Z LoadBlockIndexDB: final block file data: CBlockFileInfo(blocks=0, measurement=0, heights=0...0, time=1970-01-01...1970-01-01)
2023-02-03T04:05:55Z Checking all blk information are current...
2023-02-03T04:05:55Z Initializing databases...
2023-02-03T04:05:55Z Pre-allocating as much as place 0x1000000 in blk00000.dat
2023-02-03T04:05:55Z Opening LevelDB in /dwelling/fluffelbuff/.litecoin/chainstate
2023-02-03T04:05:55Z Opened LevelDB efficiently
2023-02-03T04:05:55Z Utilizing obfuscation key for /dwelling/fluffelbuff/.litecoin/chainstate: 3a7426d6c4a7385a
2023-02-03T04:05:55Z init message: Rewinding blocks...
2023-02-03T04:05:55Z block index 18ms
2023-02-03T04:05:55Z loadblk thread begin
This system is then terminated with the message Reminiscence entry error (reminiscence dump written). I’ve greater than 12GB free, so it could possibly’t be that.
Did I overlook to vary one thing?
I’ve not modified the Litcoin genesis block and am utilizing a totally empty folder for every try.
