Browse Source

Smaller values for testnet blocks so we can verify faster

pull/4/head
Jonathan "Duke" Leto 5 years ago
parent
commit
a4149b6a18
  1. 4
      src/hushd-testnet
  2. 4
      src/komodo_bitcoind.h

4
src/hushd-testnet

@ -17,8 +17,8 @@ SUPPLY=6250000
FOUNDERS=1
REWARD=0,1125000000,562500000
PERC=11111111
HALVING=129,340,840
END=128,340,5422111
HALVING=29,34,84
END=28,34,500
CLIENTNAME=GoldenSandtrout
# CryptoConditions/Custom Consensus params

4
src/komodo_bitcoind.h

@ -1215,7 +1215,7 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
// prod values
//int32_t starting_commission = 125000000, HALVING1 = 340000, INTERVAL = 840000, TRANSITION = 129, BR_END = 5422111;
// testnet values
int64_t starting_commission = 125000000, HALVING1 = 34, INTERVAL = 84, TRANSITION = 129, BR_END = 500;
int64_t starting_commission = 125000000, HALVING1 = 142, INTERVAL = 84, TRANSITION = 29, BR_END = 500;
nSubsidy = GetBlockSubsidy(height,Params().GetConsensus());
commission = ((nSubsidy * ASSETCHAINS_COMMISSION) / COIN);
fprintf(stderr,"ORIG ht.%d nSubsidy %.8f prod %llu\n",height,(double)nSubsidy/COIN,(long long)(nSubsidy * ASSETCHAINS_COMMISSION));
@ -1227,7 +1227,7 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
// 11% ie. 1/9th cannot be exactly represented and so the FR has tiny amounts of error unless done manually
// Transition period of 128 blocks has BR=FR=0
if (height < 129) {
if (height < TRANSITION) {
commission = 0;
} else if (height < HALVING1) {
commission = starting_commission;

Loading…
Cancel
Save