mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
No subsidy, 21 million genesis block
This commit is contained in:
parent
844beb0d86
commit
fc86bc95c2
6 changed files with 31 additions and 10 deletions
|
|
@ -1194,6 +1194,11 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus
|
|||
|
||||
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
|
||||
{
|
||||
if (nHeight == 0)
|
||||
return MAX_MONEY;
|
||||
else
|
||||
return 0;
|
||||
|
||||
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
|
||||
// Force block reward to zero when right shift is undefined.
|
||||
if (halvings >= 64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue