Browse Source

add missing zstat and new dep

warmup
Jonathan "Duke" Leto 5 years ago
parent
commit
13dad469c7
  1. 4
      INSTALL.md
  2. 2
      src/rpc/blockchain.cpp

4
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:

2
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);

Loading…
Cancel
Save