Skip to content

Commit

Permalink
even moar ells
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Higgins committed Nov 10, 2017
1 parent a078c48 commit 7d4cacc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ int64 GetProofOfStakeReward(int64 nCoinAge, u32int nTime)
{
// NOTE: static int64 nRewardCoinYear = CENT; // creation amount per coin-year
int64 nRewardCoinYear = nTime > POB_POS_TARGET_SWITCH_TIME ? (10 * CENT) : CENT; // creation amount per coin-year
int64 nSubsidy = nCoinAge * nRewardCoinYear * 33 / (365 * 33 + 8);
int64 nSubsidy = nCoinAge * nRewardCoinYear * 1033 / (365 * 33 + 8);

if (fDebug && GetBoolArg("-printcreation"))
printf("GetProofOfStakeReward(): create = %s nCoinAge = %d\n", FormatMoney(nSubsidy).c_str(), nCoinAge);
Expand Down Expand Up @@ -5498,8 +5498,8 @@ void SlimCoinAfterBurner(CWallet *pwallet)
printf("\twith Block height %d, transaction depth %d, vout depth %d\n",
mapBlockIndex.at(smallestWTx.hashBlock)->nHeight,
smallestWTx.nIndex, smallestWTx.GetBurnOutTxIndex());
printf("\tPoB Tartget is %s\n", hashTarget.ToString().c_str());
printf("\tnBurnBits=%08x, nEffectiveBurnCoins=%u (formatted %s)\n",
printf("\tPoB Target is %s\n", hashTarget.ToString().c_str());
printf("\tnBurnBits=%08x, nEffectiveBurnCoins=%llu (formatted %s)\n",
pblock->nBurnBits, pblock->nEffectiveBurnCoins,
FormatMoney(pblock->nEffectiveBurnCoins).c_str());

Expand Down
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ class CBlockIndex

std::string ToString() const
{
return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016llx, nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s, nBurnBits=%08x nEffectiveBurnCoins=%u (formatted %s) burnt %s)",
return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016llx, nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s, nBurnBits=%08x nEffectiveBurnCoins=%llu (formatted %s) burnt %s)",
pprev, pnext, nFile, nBlockPos, nHeight,
FormatMoney(nMint).c_str(), FormatMoney(nMoneySupply).c_str(),
GeneratedStakeModifier() ? "MOD" : "-", GetStakeEntropyBit(), IsProofOfStake()? "PoS" : "PoW",
Expand Down

0 comments on commit 7d4cacc

Please sign in to comment.