Skip to content

Commit

Permalink
Merge pull request #1358 from jamescowens/development
Browse files Browse the repository at this point in the history
Remove obsolete rpc call data return fields.
  • Loading branch information
denravonska committed Nov 23, 2018
2 parents e4ab24f + 246983a commit bcd781c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/rpcmining.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ UniValue getmininginfo(const UniValue& params, bool fHelp)
obj.pushKV("mining-created", MinerStatus.CreatedCnt);
obj.pushKV("mining-accepted", MinerStatus.AcceptedCnt);
obj.pushKV("mining-kernels-found", MinerStatus.KernelsFound);
// Avoid calculating coinage of all coins just to get interest,
// reuse value found by miner which has to load blocks anyway
double dInterest = MinerStatus.CoinAgeSum * GetCoinYearReward(nTime) * 33 / (365 * 33 + 8);
obj.pushKV("InterestPending",dInterest/(double)COIN);

obj.pushKV("kernel-diff-best",MinerStatus.KernelDiffMax);
obj.pushKV("kernel-diff-sum",MinerStatus.KernelDiffSum);
}
Expand All @@ -75,7 +70,6 @@ UniValue getmininginfo(const UniValue& params, bool fHelp)
obj.pushKV("errors", GetWarnings("statusbar"));
obj.pushKV("pooledtx", (uint64_t)mempool.size());
//double nCutoff = GetAdjustedTime() - (60*60*24*14);
obj.pushKV("stakeinterest", GetCoinYearReward( GetAdjustedTime())/(double)COIN);
obj.pushKV("testnet", fTestNet);
double neural_popularity = 0;
std::string neural_hash = GetNeuralNetworkSupermajorityHash(neural_popularity);
Expand Down
1 change: 0 additions & 1 deletion src/rpcwallet.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ UniValue getinfo(const UniValue& params, bool fHelp)
obj.pushKV("proxy", (proxy.first.IsValid() ? proxy.first.ToStringIPPort() : string()));
obj.pushKV("ip", addrSeenByPeer.ToStringIP());

diff.pushKV("proof-of-work", GetDifficulty());
diff.pushKV("proof-of-stake", GetDifficulty(GetLastBlockIndex(pindexBest, true)));
obj.pushKV("difficulty", diff);

Expand Down

0 comments on commit bcd781c

Please sign in to comment.