Merge pull request #307 from thrasher-/master

Litecoin: Adjust nCheckDepth and add Testnet DNS seeder
This commit is contained in:
Adrian Gallagher 2017-04-28 11:17:17 +10:00 committed by GitHub
commit 375ee50145
2 changed files with 3 additions and 1 deletions

View File

@ -221,6 +221,7 @@ public:
// nodes with support for servicebits filtering should be at the top
vSeeds.push_back(CDNSSeedData("litecointools.com", "testnet-seed.litecointools.com"));
vSeeds.push_back(CDNSSeedData("loshan.co.uk", "seed-b.litecoin.loshan.co.uk", true));
vSeeds.push_back(CDNSSeedData("thrasher.io", "dnsseed-testnet.thrasher.io", true));
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);

View File

@ -4158,7 +4158,8 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
// Verify blocks in the best chain
if (nCheckDepth <= 0)
nCheckDepth = 4000000000; // suffices until the year 19000
// Litecoin: suffices until year 10214. Didn't x4 value due to integer wrap around and upstream compatibility.
nCheckDepth = std::numeric_limits<int>::max();
if (nCheckDepth > chainActive.Height())
nCheckDepth = chainActive.Height();
nCheckLevel = std::max(0, std::min(4, nCheckLevel));