Author

Topic: ERROR: Hardened checkpoint at height 0 (Read 151 times)

newbie
Activity: 27
Merit: 0
September 05, 2020, 07:10:59 AM
#6
Can I use MainNet data( Merkle, Genesis, epoch, nounce) to Testnet and RegTest?

No, due to various reasons such as different address format & genesis block on testnet are different.

Thanks, I used source code to generate Genesisblock hash, with different PCH message and other values for all three.

For Mainnet and TestNet it crated same Nounce, Markel and Genesis Hash values. But different values for RegTest.
newbie
Activity: 27
Merit: 0
September 05, 2020, 02:39:10 AM
#5
I cleaned everything and new genesis block created. Now its working Fine.

Code:
root@bitstash:/home/qtum-old/src# ./qtum-cli --getinfo
{
"version": 190100,
"protocolversion": 70018,
"blocks": 0,
"timeoffset": 0,
"connections": 0,
"proxy": "",
"difficulty": {
"proof-of-work": 1.52587890625e-05,
"proof-of-stake": 1.52587890625e-05
},
"chain": "main",
"moneysupply": 0,
"walletversion": 169900,
"balance": 0.00000000,
"stake": 0.00000000,
"keypoololdest": 1599197003,
"keypoolsize": 1000,
"paytxfee": 0.00000000,
"relayfee": 0.00400000,
"warnings": ""
}

Code:
2020-09-04T05:23:22Z [default wallet] Performing wallet upgrade to 169900
2020-09-04T05:23:23Z [default wallet] keypool added 2000 keys (1000 internal), size=2000 (1000 internal)
2020-09-04T05:23:23Z [default wallet] Wallet completed loading in 858ms
2020-09-04T05:23:23Z [default wallet] setKeyPool.size() = 2000
2020-09-04T05:23:23Z [default wallet] mapWallet.size() = 0
2020-09-04T05:23:23Z [default wallet] mapAddressBook.size() = 0
2020-09-04T05:23:23Z UpdateTip: new best=0000ff68e1cfa3d35a6e0a7923a01ae94e5e5c28104459c844bf8037a273cd99 height=0 version=0x00000001 log2_work=16.000022 tx=1 date='2020-09-04T05:15:06Z' progress=1.000000 cache=0.0MiB(0txo)
2020-09-04T05:23:23Z block tree size = 1
2020-09-04T05:23:23Z nBestHeight = 0
2020-09-04T05:23:23Z AddLocal(45.32.79.25:4565,1)
2020-09-04T05:23:23Z Discover: IPv4 ens3: 45.32.79.25
2020-09-04T05:23:23Z AddLocal([2001:19f0:6001:1514:5400:2ff:fef3:e254]:4565,1)
2020-09-04T05:23:23Z Discover: IPv6 ens3: 2001:19f0:6001:1514:5400:2ff:fef3:e254
2020-09-04T05:23:23Z Bound to [::]:4565
2020-09-04T05:23:23Z Bound to 0.0.0.0:4565
2020-09-04T05:23:23Z init message: Loading P2P addresses...
2020-09-04T05:23:23Z ERROR: DeserializeFileDB: Failed to open file /root/.qtum/peers.dat
2020-09-04T05:23:23Z Invalid or missing peers.dat; recreating
2020-09-04T05:23:23Z Failed to open mempool file from disk. Continuing anyway.
2020-09-04T05:23:23Z torcontrol thread start
2020-09-04T05:23:23Z init message: Starting network threads...
2020-09-04T05:23:23Z init message: Done loading
2020-09-04T05:23:23Z msghand thread start
2020-09-04T05:23:23Z opencon thread start
2020-09-04T05:23:23Z addcon thread start
2020-09-04T05:23:23Z dnsseed thread start
2020-09-04T05:23:23Z 0 addresses found from DNS seeds
2020-09-04T05:23:23Z dnsseed thread exit
2020-09-04T05:23:23Z net thread start


Thanks
hero member
Activity: 813
Merit: 1944
September 05, 2020, 12:59:36 AM
#4
Quote
Latest version I think, cloned from repository with --recursive.
Probably not, in the latest version this assertion is in line 1420, not 1636 in validation.cpp. Are you using "23d3ae7accfc690298b1b0bac9615155f485c5ad" version?

It seems that your client found a node with different Genesis Block. All blocks have block hash starting with at least 32 zero bits. Also, this Genesis Block has a very recent timestamp, 2020-09-03.

Hardened checkpoints does not exist in the newest version, grep shows no results for "hardened checkpoint".
newbie
Activity: 27
Merit: 0
September 03, 2020, 06:44:49 AM
#3
What version did you compile?

As far as I remember BTC no longer uses hardcoded checkpoints but this is for block 0 so it might still be checking for that.
You can probably google around for that.

Beyond that I have no idea, you will have to wait for a few more knowledgeable people to pop in.

-Dave


Latest version I think, cloned from repository with --recursive.

Can I use MainNet data( Merkle, Genesis, epoch, nounce) to Testnet and RegTest?

Thanks 
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
September 03, 2020, 06:34:44 AM
#2
What version did you compile?

As far as I remember BTC no longer uses hardcoded checkpoints but this is for block 0 so it might still be checking for that.
You can probably google around for that.

Beyond that I have no idea, you will have to wait for a few more knowledgeable people to pop in.

-Dave
newbie
Activity: 27
Merit: 0
September 03, 2020, 06:19:28 AM
#1
Hello,

2020-09-03T11:05:58Z ERROR: ConnectBlock: expected hardened checkpoint at height 0
2020-09-03T11:05:58Z InvalidChainFound: invalid block=0000cd027920e06c8427611280df1bb5afc78a22cdb21a74d87b51da6b84bd5d  height=0  log2_work=16.000022  date=2020-09-03T07:48:16Z
qtumd: validation.cpp:1636: void InvalidChainFound(CBlockIndex*): Assertion `tip' failed.

What is the issue.

Thanks
Jump to: