diff --git a/INSTALL.md b/INSTALL.md index 38c49c68b..348aa9f3d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -24,7 +24,7 @@ sudo swapon /swapfile # install build depedencies sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \ autoconf libtool ncurses-dev unzip git python zlib1g-dev wget \ - bsdmainutils automake curl unzip nano + bsdmainutils automake curl unzip nano libsodium-dev # pull git clone https://github.com/MyHush/hush3.git cd hush3 @@ -49,7 +49,7 @@ Get dependencies: sudo apt-get install \ build-essential pkg-config libc6-dev m4 g++-multilib \ autoconf libtool ncurses-dev unzip git python \ - zlib1g-dev wget bsdmainutils automake mingw-w64 cmake + zlib1g-dev wget bsdmainutils automake mingw-w64 cmake libsodium-dev ``` Downloading Git source repo, building and running Hush: diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 0d8c0a46a..ecc5cd848 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -2049,6 +2049,8 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp) ret.pushKV("window_shielded_payments", nShieldedPaymentsDiff); ret.pushKV("window_shielding_payments", nShieldingPaymentsDiff); ret.pushKV("window_deshielding_payments", nDeshieldingPaymentsDiff); + ret.pushKV("window_shielded_txcount", nShieldedTxDiff); + if (nTxDiff > 0) { ret.pushKV("shielded_tx_percent", ((double)nShieldedTxDiff) / nTxDiff); ret.pushKV("fully_shielded_tx_percent", ((double)nFullyShieldedTxDiff) / nTxDiff);