GarlicoinOrg / Garlicoin

Garlicoin source tree
http://garlicoin.io
MIT License
139 stars 59 forks source link

Regtest fails to assert the genesis block hash #88

Closed HoorayJorge closed 2 years ago

HoorayJorge commented 2 years ago

What version of garlicoin-core are you using?

(https://github.com/GarlicoinOrg/Garlicoin/commit/e402c559efe51e5191aabdd0a7710408490d160a)

Machine specs:

  Model Name:     MacBook Air
  Model Identifier: MacBookAir10,1
  Chip: Apple M1
  Total Number of Cores:    8 (4 performance and 4 efficiency)
  Memory:   16 GB
  System Firmware Version:  7459.141.1
  OS Loader Version:    7459.141.1

  System Version:   macOS 12.5.1 (21G83)
  Kernel Version:   Darwin 21.6.0
  Boot Volume:  Macintosh HD
  Boot Mode:    Normal
  Secure Virtual Memory:    Enabled
  System Integrity Protection:  Enabled
  Time since boot:  4 days 7:28

Any extra information that might be useful in the debugging process.

2022-09-07 06:46:56 ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)
2022-09-07 06:46:56 *** Failed to read block
2022-09-07 06:46:56 Error: Error: A fatal internal error occurred, see debug.log for details

Regtest fails the block assert with current block. Fails with block generated by GenesisH0 for Scrypt-11. Succeeds with testnet block details, but also fails with the results of

consensus.hashGenesisBlock = genesis.GetHash();
printf("TEST GENESIS HASH: %s\n",consensus.hashGenesisBlock.ToString().c_str());
printf("TEST MERKLE ROOT: %s\n",genesis.hashMerkleRoot.ToString().c_str());
assert(consensus.hashGenesisBlock == uint256S("0x22d891055a486fb0c5ce668f9b8e032b2e9a764d11247abf6ef115329a868af0"));
assert(genesis.hashMerkleRoot == uint256S("0x5f32b33db6dcab182dfad55b3d04b2978c1598cf82519835e000dd77e37f3aa8"));

used in the asset step.