fix: RPC error handling

feat: create and load wallets
This commit is contained in:
Sérgio Salgado 2022-03-29 17:38:52 +01:00
parent f9ae681453
commit 0135d50416
7 changed files with 84 additions and 33 deletions

View file

@ -23,8 +23,6 @@ module.exports = {
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-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz',
dir: 'bitcoin-22.0/bin'
},
@ -56,7 +54,7 @@ const BINARIES = {
}
}
const coinsUpdateDependent = ['BTC']
const coinsUpdateDependent = []
function firewall (ports) {
if (!ports || ports.length === 0) throw new Error('No ports supplied')