add missing zstat and new dep

This commit is contained in:
Jonathan "Duke" Leto
2019-08-22 05:43:51 -07:00
parent d0d6a9cea9
commit 13dad469c7
2 changed files with 4 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ sudo swapon /swapfile
# install build depedencies # install build depedencies
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \ sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python zlib1g-dev wget \ autoconf libtool ncurses-dev unzip git python zlib1g-dev wget \
bsdmainutils automake curl unzip nano bsdmainutils automake curl unzip nano libsodium-dev
# pull # pull
git clone https://github.com/MyHush/hush3.git git clone https://github.com/MyHush/hush3.git
cd hush3 cd hush3
@@ -49,7 +49,7 @@ Get dependencies:
sudo apt-get install \ sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \ build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \ 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: Downloading Git source repo, building and running Hush:

View File

@@ -2049,6 +2049,8 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp)
ret.pushKV("window_shielded_payments", nShieldedPaymentsDiff); ret.pushKV("window_shielded_payments", nShieldedPaymentsDiff);
ret.pushKV("window_shielding_payments", nShieldingPaymentsDiff); ret.pushKV("window_shielding_payments", nShieldingPaymentsDiff);
ret.pushKV("window_deshielding_payments", nDeshieldingPaymentsDiff); ret.pushKV("window_deshielding_payments", nDeshieldingPaymentsDiff);
ret.pushKV("window_shielded_txcount", nShieldedTxDiff);
if (nTxDiff > 0) { if (nTxDiff > 0) {
ret.pushKV("shielded_tx_percent", ((double)nShieldedTxDiff) / nTxDiff); ret.pushKV("shielded_tx_percent", ((double)nShieldedTxDiff) / nTxDiff);
ret.pushKV("fully_shielded_tx_percent", ((double)nFullyShieldedTxDiff) / nTxDiff); ret.pushKV("fully_shielded_tx_percent", ((double)nFullyShieldedTxDiff) / nTxDiff);