Skip to content

Commit

Permalink
Tidy getsubsidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Jun 14, 2018
1 parent 49d312b commit d933f8c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/rpcmining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ Value getsubsidy(const Array& params, bool fHelp)
"getsubsidy [nTarget]\n"
"Returns proof-of-work subsidy value for the specified value of target.");

unsigned int nBits = 0;

if (params.size() != 0)
{
CBigNum bnTarget(uint256(params[0].get_str()));
nBits = bnTarget.GetCompact();
}
else
{
nBits = GetNextTargetRequired(pindexBest, false);
}

return (uint64_t)GetProofOfWorkReward(0);
}

Expand Down

0 comments on commit d933f8c

Please sign in to comment.