-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbigbangcoin.txt
executable file
·68 lines (57 loc) · 1.9 KB
/
bigbangcoin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
bigbangcoin https://bitcointalk.org/index.php?topic=716901.0
Heritage:
Problems:
* MINOR: Genesis seed is not a news event
* MAJOR: Total money supply is wrong. I ran the random reward code through to 7000 blocks multiple times with a random number generator, and the average total supply is about 1.3 million coins, not 7 million as the ANN says
** This means the premine is actually about 4.8% or so of PoW minted coins, not 0.9% as the ANN says
Notes:
Cleaned up reward code:
// miner's coin base reward
int64_t GetProofOfWorkReward(int64_t nFees)
{
if (pindexBest->nHeight < 1)
{
nSubsidy = 63000 * COIN; //0.9% Premine
}
else if (pindexBest->nHeight < 101)
{
nSubsidy = 1 * COIN; //1 Coin per block to prevent instamine
}
else
{
int rand = generateMTRandom(pindexBest->nHeight, 1000);
if (pindexBest->nHeight < 7001)
{
if(rand >= 990)
{
nSubsidy = 10000 * COIN;
}
else if (rand >= 940)
{
nSubsidy = 500 * COIN;
}
else if (rand >= 840)
{
nSubsidy = 250 * COIN;
}
else if (rand >= 690)
{
nSubsidy = 100 * COIN;
}
else if (rand >= 490)
{
nSubsidy = 50 * COIN;
}
else if (rand <= 489)
{
nSubsidy = 25 * COIN;
}
}
}
}
// Includes BigBang fix for wrong retargeting difficulty by Mammix2
(premine block matures before anything else?)
+ if(pindexBest != NULL && pindexBest->nHeight > 1)
+ nCoinbaseMaturity = 140; //coinbase maturity change to 180 blocks
blockchain not checked
Watermarks: ppcoin -> bigbang, major client version is 2, uint64_t