Closed remyers closed 7 years ago
Perhaps this question is relevant (from 2012!) ? Testnet difficulty and max target
Hello, I'm trying to import the testnet block chain on a library I'm working on but speaking of difficulty I'm not understanding well the differences relative to the production network.
This is what I've understood until now about prodnet:
- max allowed target is 0xFFFF0000000000000000000000000000000000000000000000000000
- corresponding max bits (compressed target) is 0x1D00FFFF
While in testnet:
what is the max allowed target? On the wiki it's stated that "Minimum difficulty of 1.0 on testnet is equal to difficulty of 0.5 on mainnet. >This means that the mainnet-equivalent of any testnet difficulty is half the testnet difficulty." so I guess >I've to shift left the prodnet max target, getting >0x1FFFE00000000000000000000000000000000000000000000000000000 but I can't find any >confirmation for that.
what is the corresponding compressed target?
Any help would be greatly appreciated!
Thanks for this report! We believe we've tracked down the bug and fixed it in neutrino. The fix will be included in the next app release.
Fantastic! I'll let you know how it goes once I've tested it out.
I can confirm sync works on Windows 10 x64. Thanks for the fast fix!
Repo:
lnd: 2017-10-13 19:17:35.023 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of 00000000ffff0000000000000000000000000000000000000000000000000000 is higher than max of 0000000000000202f00000000000000000000000000000000000000000000000 -- disconnecting peer
lnd: 2017-10-13 19:17:40.577 [INF] BTCN: Syncing to block height 1126632 from peer 35.199.154.3:18333 2017-10-13 19:17:40.577 [INF] BTCN: Downloading headers for blocks 930001 to 1000007 from peer 35.199.154.3:18333
Difficulty of block 121049 is : 486,604,799 == 1D00 FFFF and sanity check mentions difficulty target of: 00000000ffff0000000000000000000000000000000000000000000000000000
System info:
Windows 10 Pro x64 - version 1703, OS Build 15063.674
My log file: