chore: use zcashd v4.7.0

This commit is contained in:
Neal 2022-04-18 14:57:58 -04:00
parent 2a2c1fccc8
commit 7a75fc7ee0
2 changed files with 10 additions and 2 deletions

View file

@ -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',

View file

@ -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
`
}