Skip to content

Commit

Permalink
Updating chainparams.cpp and.h files
Browse files Browse the repository at this point in the history
Updating the chain params files to have correct block cutover height for the new algorithm

Tidying up seed node references to be usable subdomains for future test nets, additionally code indentation tidy up.
  • Loading branch information
ChrisFirgaira committed Nov 22, 2021
1 parent b40540d commit fd52347
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CMainParams : public CChainParams {
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
consensus.nPowDGWHeight = 63260;
consensus.nPowDGWHeight = 63260;
consensus.nPowScryptNAHHeight = 808600; // Approximately November 26th 1PM go live of Strayacoin v2.0.0 with Mining Algo Changes
consensus.nRuleChangeActivationThreshold = 6048; // 75% of 8064
consensus.nMinerConfirmationWindow = 8064; // nPowTargetTimespan / nPowTargetSpacing * 4
Expand Down Expand Up @@ -221,9 +221,9 @@ class CTestNetParams : public CChainParams {
vFixedSeeds.clear();
vSeeds.clear();
// nodes with support for servicebits filtering should be at the top
vSeeds.emplace_back("testnet-seed.strayacointools.com", true);
vSeeds.emplace_back("seed-b.strayacoin.loshan.co.uk", true);
vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
vSeeds.emplace_back("testnet.strayacoin.icu", true);
vSeeds.emplace_back("testnet.straya.network", true);
vSeeds.emplace_back("testnet.strayacoin.com", 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/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ class CChainParams
int GetPoWAlgo(int nHeight) const {
if (strNetworkID == CBaseChainParams::TESTNET && nHeight > 10){
return ALGO_SCRYPT_NAH;
} else if(strNetworkID == CBaseChainParams::MAIN && nHeight > 800000){ //Deploy new Strayacoin Algo to remove ASIC's
} else if(strNetworkID == CBaseChainParams::MAIN && nHeight >= 808600){ //Deploy new Strayacoin Algo to remove ASIC's
return ALGO_SCRYPT_NAH;
} else {
return ALGO_SCRYPT;
}
}

protected:
CChainParams() {}

Expand Down

0 comments on commit fd52347

Please sign in to comment.