chore: update BCH, LTC

This commit is contained in:
Neal 2022-06-21 16:42:51 -04:00
parent c94d767f0b
commit 6826b9df63
2 changed files with 12 additions and 4 deletions

View file

@ -28,6 +28,13 @@ function updateCore (coinRec, isCurrentlyRunning) {
common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`)
common.es(`rm /tmp/bitcoincash.tar.gz`)
if (common.es(`grep "listenonion=" /mnt/blockchains/bitcoincash/bitcoincash.conf || true`)) {
common.logger.info(`listenonion already defined, skipping...`)
} else {
common.logger.info(`Setting 'listenonion=0' in config file...`)
common.es(`echo "\nlistenonion=0" >> /mnt/blockchains/bitcoincash/bitcoincash.conf`)
}
if (isCurrentlyRunning) {
common.logger.info('Starting wallet...')
common.es(`sudo supervisorctl start bitcoincash`)
@ -47,5 +54,6 @@ prune=4000
daemon=0
bind=0.0.0.0:8335
rpcport=8336
listenonion=0
`
}