From 31d6aebd01cded8580a1d14408aef08203a71362 Mon Sep 17 00:00:00 2001 From: CrypticaScriptura <7396812+CrypticaScriptura@users.noreply.github.com> Date: Wed, 24 Apr 2024 07:50:55 -0400 Subject: [PATCH] [LAM-1096] chore: update coin nodes (bitcoind v27) (#1675) * chore: update all the nodes * chore: v10.0.0-rc.5 * chore: disable blockfilters on litecoin when pruned --- lib/blockchain/common.js | 24 ++++++++++++------------ lib/blockchain/litecoin.js | 16 ++++++++++++++++ package-lock.json | 2 +- package.json | 2 +- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/lib/blockchain/common.js b/lib/blockchain/common.js index 854a0ffb38..5044d82fb5 100644 --- a/lib/blockchain/common.js +++ b/lib/blockchain/common.js @@ -30,28 +30,28 @@ const BINARIES = { BTC: { defaultUrl: 'https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz', defaultDir: 'bitcoin-0.20.1/bin', - url: 'https://bitcoincore.org/bin/bitcoin-core-26.0/bitcoin-26.0-x86_64-linux-gnu.tar.gz', - dir: 'bitcoin-26.0/bin' + url: 'https://bitcoincore.org/bin/bitcoin-core-27.0/bitcoin-27.0-x86_64-linux-gnu.tar.gz', + dir: 'bitcoin-27.0/bin' }, ETH: { - url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.13.5-916d6a44.tar.gz', - dir: 'geth-linux-amd64-1.13.5-916d6a44' + url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.13.15-c5ba367e.tar.gz', + dir: 'geth-linux-amd64-1.13.15-c5ba367e' }, ZEC: { - url: 'https://download.z.cash/downloads/zcash-5.7.0-linux64-debian-bullseye.tar.gz', - dir: 'zcash-5.7.0/bin' + url: 'https://github.com/zcash/artifacts/raw/master/v5.9.0/bullseye/zcash-5.9.0-linux64-debian-bullseye.tar.gz', + dir: 'zcash-5.9.0/bin' }, DASH: { defaultUrl: 'https://github.com/dashpay/dash/releases/download/v18.1.0/dashcore-18.1.0-x86_64-linux-gnu.tar.gz', defaultDir: 'dashcore-18.1.0/bin', - url: 'https://github.com/dashpay/dash/releases/download/v20.0.2/dashcore-20.0.2-x86_64-linux-gnu.tar.gz', - dir: 'dashcore-20.0.2/bin' + url: 'https://github.com/dashpay/dash/releases/download/v20.1.1/dashcore-20.1.1-x86_64-linux-gnu.tar.gz', + dir: 'dashcore-20.1.1/bin' }, LTC: { defaultUrl: 'https://download.litecoin.org/litecoin-0.18.1/linux/litecoin-0.18.1-x86_64-linux-gnu.tar.gz', defaultDir: 'litecoin-0.18.1/bin', - url: 'https://download.litecoin.org/litecoin-0.21.2.2/linux/litecoin-0.21.2.2-x86_64-linux-gnu.tar.gz', - dir: 'litecoin-0.21.2.2/bin' + url: 'https://download.litecoin.org/litecoin-0.21.3/linux/litecoin-0.21.3-x86_64-linux-gnu.tar.gz', + dir: 'litecoin-0.21.3/bin' }, BCH: { url: 'https://github.com/bitcoin-cash-node/bitcoin-cash-node/releases/download/v27.0.0/bitcoin-cash-node-27.0.0-x86_64-linux-gnu.tar.gz', @@ -59,8 +59,8 @@ const BINARIES = { files: [['bitcoind', 'bitcoincashd'], ['bitcoin-cli', 'bitcoincash-cli']] }, XMR: { - url: 'https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.3.1.tar.bz2', - dir: 'monero-x86_64-linux-gnu-v0.18.3.1', + url: 'https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.3.3.tar.bz2', + dir: 'monero-x86_64-linux-gnu-v0.18.3.3', files: [['monerod', 'monerod'], ['monero-wallet-rpc', 'monero-wallet-rpc']] } } diff --git a/lib/blockchain/litecoin.js b/lib/blockchain/litecoin.js index 0bdc25406c..cd02a77f6c 100644 --- a/lib/blockchain/litecoin.js +++ b/lib/blockchain/litecoin.js @@ -34,6 +34,20 @@ function updateCore (coinRec, isCurrentlyRunning) { common.es(`echo "\nchangetype=bech32" >> /mnt/blockchains/litecoin/litecoin.conf`) } + if (common.es(`grep "blockfilterindex=" /mnt/blockchains/litecoin/litecoin.conf || true`)) { + common.logger.info(`blockfilterindex already defined, skipping...`) + } else { + common.logger.info(`Disabling blockfilterindex in config file..`) + common.es(`echo "\nblockfilterindex=0" >> /mnt/blockchains/litecoin/litecoin.conf`) + } + + if (common.es(`grep "peerblockfilters=" /mnt/blockchains/litecoin/litecoin.conf || true`)) { + common.logger.info(`peerblockfilters already defined, skipping...`) + } else { + common.logger.info(`Disabling peerblockfilters in config file..`) + common.es(`echo "\npeerblockfilters=0" >> /mnt/blockchains/litecoin/litecoin.conf`) + } + if (isCurrentlyRunning) { common.logger.info('Starting wallet...') common.es(`sudo supervisorctl start litecoin`) @@ -53,5 +67,7 @@ prune=4000 daemon=0 addresstype=p2sh-segwit changetype=bech32 +blockfilterindex=0 +peerblockfilters=0 ` } diff --git a/package-lock.json b/package-lock.json index 17675e1766..358c305896 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "lamassu-server", - "version": "10.0.0-rc.4", + "version": "10.0.0-rc.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3e5eb0a150..928677a943 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "lamassu-server", "description": "bitcoin atm client server protocol module", "keywords": [], - "version": "10.0.0-rc.4", + "version": "10.0.0-rc.5", "license": "./LICENSE", "author": "Lamassu (https://lamassu.is)", "dependencies": {