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

Function GetMasternodePosReward

src/main.cpp:1999–2015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1997}
1998
1999CAmount GetMasternodePosReward(int nHeight, CAmount blockValue)
2000{
2001 const CChainParams& chainParams = Params();
2002 CAmount ret = 0;
2003 if (nHeight >= POS_REWARD_CHANGED_BLOCK && nHeight < chainParams.StartDevfeeBlock()) {
2004 if (nHeight != chainParams.PreminePayment() || IsTestNet()) {
2005 ret = blockValue * 0.2; //20% for masternode
2006 } else if (nHeight == chainParams.PreminePayment()) {
2007 ret = blockValue * 250000; //premine mint
2008 }
2009 } else if (nHeight >= chainParams.StartDevfeeBlock() && nHeight < 6000000) {
2010 ret = blockValue * 0.25; //25% for masternodes after this reward change
2011 } else {
2012 ret = blockValue * 0.4; //40% for masternode
2013 }
2014 return ret;
2015}
2016
2017bool IsInitialBlockDownload()
2018{

Callers 3

ProcessBlockFoundFunction · 0.85
CreateCoinStakeMethod · 0.85

Calls 4

IsTestNetFunction · 0.85
StartDevfeeBlockMethod · 0.80
PreminePaymentMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected