Skip to content

Commit

Permalink
Merge pull request #307 from thrasher-/master
Browse files Browse the repository at this point in the history
Litecoin: Adjust nCheckDepth and add Testnet DNS seeder
  • Loading branch information
thrasher- committed Apr 28, 2017
2 parents f2dca02 + edc66b3 commit 375ee50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ class CTestNetParams : public CChainParams {
// 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);
Expand Down
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 375ee50

Please sign in to comment.