MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetProofOfStakeReward

Function GetProofOfStakeReward

src/main.cpp:1980–1997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978}
1979
1980CAmount GetProofOfStakeReward(int64_t nFees, int nHeight)
1981{
1982 CAmount nSubsidy = STATIC_POS_REWARD;
1983 const CChainParams& chainParams = Params();
1984
1985 // First 100,000 blocks double stake for masternode ready
1986 if (nHeight < 100000) {
1987 nSubsidy = 2 * COIN;
1988 } else if (nHeight >= 100000 && nHeight < chainParams.StartDevfeeBlock()) {
1989 nSubsidy = 1 * COIN;
1990 } else if (nHeight >= chainParams.StartDevfeeBlock() && nHeight < 6000000) {
1991 nSubsidy = 1.5 * COIN;
1992 } else {
1993 nSubsidy = 1 * COIN;
1994 }
1995
1996 return nSubsidy + nFees;
1997}
1998
1999CAmount GetMasternodePosReward(int nHeight, CAmount blockValue)
2000{

Callers 6

ProcessBlockFoundFunction · 0.85
CreateCoinStakeMethod · 0.85
ConnectBlockFunction · 0.85
ContextualCheckBlockFunction · 0.85
BlockToStringFunction · 0.85

Calls 2

StartDevfeeBlockMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected