From 284edb0968fe7f9afee8326a1bd9272842c2afb0 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 19 Dec 2019 12:38:06 -0500 Subject: [PATCH] Add some forgotten zstats that are important --- src/rpc/blockchain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 8c93a074f..bfbd2dd84 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1996,6 +1996,10 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp, const CPubKey& mypk if (fZindex) { ret.pushKV("window_payments", (int) nPaymentsDiff); ret.pushKV("window_notarizations", (int) nNotarizationsDiff); + ret.pushKV("window_fully_shielded_txcount", nFullyShieldedTxDiff); + ret.pushKV("window_deshielding_txcount", nDeshieldingTxDiff); + ret.pushKV("window_shielding_txcount", nShieldingTxDiff); + ret.pushKV("window_shielded_txcount", nShieldedTxDiff); ret.pushKV("window_fully_shielded_payments", nFullyShieldedPaymentsDiff); ret.pushKV("window_shielded_payments", nShieldedPaymentsDiff); ret.pushKV("window_shielding_payments", nShieldingPaymentsDiff); @@ -2013,7 +2017,7 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp, const CPubKey& mypk ret.pushKV("deshielding_payments_percent", ((double)nDeshieldingPaymentsDiff) / nPaymentsDiff); } - // Shielded statistics + // Statistics considering only zxtns UniValue shielded(UniValue::VOBJ); if (nShieldedTxDiff > 0) { shielded.pushKV("fully_shielded_tx_percent", ((double)nFullyShieldedTxDiff) / nShieldedTxDiff );