From 7a75fc7ee0b5c0f49b46fa6c41272d8ca2ea64c6 Mon Sep 17 00:00:00 2001 From: Neal Date: Mon, 18 Apr 2022 14:57:58 -0400 Subject: [PATCH] chore: use zcashd v4.7.0 --- lib/blockchain/common.js | 4 ++-- lib/blockchain/zcash.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/blockchain/common.js b/lib/blockchain/common.js index ea28c639..96524f34 100644 --- a/lib/blockchain/common.js +++ b/lib/blockchain/common.js @@ -31,8 +31,8 @@ const BINARIES = { dir: 'geth-linux-amd64-1.10.17-25c9b49f' }, ZEC: { - url: 'https://z.cash/downloads/zcash-4.6.0-2-linux64-debian-bullseye.tar.gz', - dir: 'zcash-4.6.0-2/bin' + url: 'https://download.z.cash/downloads/zcash-4.7.0-linux64-debian-bullseye.tar.gz', + dir: 'zcash-4.7.0/bin' }, DASH: { url: 'https://github.com/dashpay/dash/releases/download/v0.17.0.3/dashcore-0.17.0.3-x86_64-linux-gnu.tar.gz', diff --git a/lib/blockchain/zcash.js b/lib/blockchain/zcash.js index 777a67b4..51430969 100644 --- a/lib/blockchain/zcash.js +++ b/lib/blockchain/zcash.js @@ -20,6 +20,13 @@ function updateCore (coinRec, isCurrentlyRunning) { common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`) common.es(`rm /tmp/zcash.tar.gz`) + if (common.es(`grep "walletrequirebackup=" /mnt/blockchains/zcash/zcash.conf || true`)) { + common.logger.info(`walletrequirebackup already defined, skipping...`) + } else { + common.logger.info(`Setting 'walletrequirebackup=false' in config file...`) + common.es(`echo "\nwalletrequirebackup=false" >> /mnt/blockchains/zcash/zcash.conf`) + } + if (isCurrentlyRunning) { common.logger.info('Starting wallet...') common.es(`sudo supervisorctl start zcash`) @@ -50,5 +57,6 @@ rpcuser=lamassuserver rpcpassword=${common.randomPass()} dbcache=500 keypool=10000 +walletrequirebackup=false ` }