mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
change nSubsidy's type from int64_t to CAmount
This commit is contained in:
parent
fd3777b0b2
commit
60d1ecd378
@ -1180,7 +1180,7 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex)
|
|||||||
|
|
||||||
CAmount GetBlockValue(int nHeight, const CAmount& nFees)
|
CAmount GetBlockValue(int nHeight, const CAmount& nFees)
|
||||||
{
|
{
|
||||||
int64_t nSubsidy = 50 * COIN;
|
CAmount nSubsidy = 50 * COIN;
|
||||||
int halvings = nHeight / Params().SubsidyHalvingInterval();
|
int halvings = nHeight / Params().SubsidyHalvingInterval();
|
||||||
|
|
||||||
// Force block reward to zero when right shift is undefined.
|
// Force block reward to zero when right shift is undefined.
|
||||||
|
Loading…
Reference in New Issue
Block a user