Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete rpc call data return fields. #1358

Merged
merged 2 commits into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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