mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
update block value
This commit is contained in:
parent
f2e05edff4
commit
1554292ee8
@ -1072,8 +1072,10 @@ unsigned int TargetGetLength(unsigned int nBits)
|
|||||||
bool TargetGetMint(unsigned int nBits, uint64& nMint)
|
bool TargetGetMint(unsigned int nBits, uint64& nMint)
|
||||||
{
|
{
|
||||||
nMint = 0;
|
nMint = 0;
|
||||||
static uint64 nMintLimit = 50 * COIN;
|
static uint64 nMintLimit = 999llu * COIN;
|
||||||
CBigNum bnMint = nMintLimit;
|
CBigNum bnMint = nMintLimit;
|
||||||
|
if (TargetGetLength(nBits) < nTargetMinLength)
|
||||||
|
return error("TargetGetMint() : length below minimum required, nBits=%08x", nBits);
|
||||||
bnMint = (bnMint << nFractionalBits) / nBits;
|
bnMint = (bnMint << nFractionalBits) / nBits;
|
||||||
bnMint = (bnMint << nFractionalBits) / nBits;
|
bnMint = (bnMint << nFractionalBits) / nBits;
|
||||||
bnMint = (bnMint / CENT) * CENT; // mint value rounded to cent
|
bnMint = (bnMint / CENT) * CENT; // mint value rounded to cent
|
||||||
|
Loading…
Reference in New Issue
Block a user