parent
3cf048d01c
commit
b682fcb8d6
@ -269,9 +269,9 @@ public:
|
||||
CRegTestParams() {
|
||||
strNetworkID = "regtest";
|
||||
consensus.nSubsidyHalvingInterval = 150;
|
||||
consensus.nMasternodePaymentsStartBlock = 40;
|
||||
consensus.nMasternodePaymentsIncreaseBlock = 50;
|
||||
consensus.nMasternodePaymentsIncreasePeriod = 100;
|
||||
consensus.nMasternodePaymentsStartBlock = 240;
|
||||
consensus.nMasternodePaymentsIncreaseBlock = 350;
|
||||
consensus.nMasternodePaymentsIncreasePeriod = 10;
|
||||
consensus.nBudgetPaymentsStartBlock = 1000;
|
||||
consensus.nBudgetPaymentsCycleBlocks = 50;
|
||||
consensus.nBudgetPaymentsWindowBlocks = 100;
|
||||
|
@ -1503,7 +1503,7 @@ CAmount GetBlockSubsidy(int nPrevBits, int nPrevHeight, const Consensus::Params&
|
||||
double dDiff = (double)0x0000ffff / (double)(nPrevBits & 0x00ffffff);
|
||||
|
||||
/* fixed bug caused diff to not be correctly calculated */
|
||||
if(nPrevHeight > 4500 || Params().NetworkIDString() == CBaseChainParams::TESTNET) dDiff = ConvertBitsToDouble(nPrevBits);
|
||||
if(nPrevHeight > 4500 || Params().NetworkIDString() != CBaseChainParams::MAIN) dDiff = ConvertBitsToDouble(nPrevBits);
|
||||
|
||||
CAmount nSubsidy = 0;
|
||||
if(nPrevHeight >= 5465) {
|
||||
|
Loading…
Reference in New Issue
Block a user