Merge pull request #307 from thrasher-/master
Litecoin: Adjust nCheckDepth and add Testnet DNS seeder
This commit is contained in:
commit
375ee50145
@ -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);
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user