chore: update bitcoind, default to bech32

This commit is contained in:
Neal 2022-05-03 14:03:15 -04:00
parent e90904537d
commit f0c063520d
2 changed files with 10 additions and 3 deletions

View file

@ -27,6 +27,13 @@ function updateCore (coinRec, isCurrentlyRunning) {
common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`) common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`)
common.es(`rm /tmp/bitcoin.tar.gz`) common.es(`rm /tmp/bitcoin.tar.gz`)
if (common.es(`grep "addresstype=p2sh-segwit" /mnt/blockchains/bitcoin/bitcoin.conf || true`)) {
common.logger.info(`Enabling bech32 receiving addresses in config file..`)
common.es(`sed -i 's/addresstype=p2sh-segwit/addresstype=bech32/g' /mnt/blockchains/bitcoin/bitcoin.conf`)
} else {
common.logger.info(`bech32 receiving addresses already defined, skipping...`)
}
if (common.es(`grep "changetype=" /mnt/blockchains/bitcoin/bitcoin.conf || true`)) { if (common.es(`grep "changetype=" /mnt/blockchains/bitcoin/bitcoin.conf || true`)) {
common.logger.info(`changetype already defined, skipping...`) common.logger.info(`changetype already defined, skipping...`)
} else { } else {
@ -58,7 +65,7 @@ connections=40
keypool=10000 keypool=10000
prune=4000 prune=4000
daemon=0 daemon=0
addresstype=p2sh-segwit addresstype=bech32
changetype=bech32 changetype=bech32
walletrbf=1 walletrbf=1
bind=0.0.0.0:8332 bind=0.0.0.0:8332

View file

@ -23,8 +23,8 @@ module.exports = {
const BINARIES = { const BINARIES = {
BTC: { BTC: {
url: 'https://bitcoincore.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz', url: 'https://bitcoincore.org/bin/bitcoin-core-23.0/bitcoin-23.0-x86_64-linux-gnu.tar.gz',
dir: 'bitcoin-22.0/bin' dir: 'bitcoin-23.0/bin'
}, },
ETH: { ETH: {
url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.17-25c9b49f.tar.gz', url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.17-25c9b49f.tar.gz',