update block value

This commit is contained in:
Evan 2014-01-18 08:09:49 -07:00
parent f2e05edff4
commit 1554292ee8

View File

@ -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