From 4959c3265dd78ad54188ac186c8966742f4c6ca9 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Wed, 26 Apr 2017 20:52:48 -0700 Subject: [PATCH 1/2] Litecoin: Adjust nCheckDepth --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 376b144bf..eab9ad559 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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::max(); if (nCheckDepth > chainActive.Height()) nCheckDepth = chainActive.Height(); nCheckLevel = std::max(0, std::min(4, nCheckLevel)); From edc66b374ea68107c721062152dd95e6aa037d53 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Wed, 26 Apr 2017 20:56:26 -0700 Subject: [PATCH 2/2] Litecoin: Add testnet DNS seeder --- src/chainparams.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 773a67af7..a7af8bfc0 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -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(1,111); base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,196);