diff --git a/lib/plugins/wallet/bitcoincashd/bitcoincashd.js b/lib/plugins/wallet/bitcoincashd/bitcoincashd.js index 14d628ce..5d5f187d 100644 --- a/lib/plugins/wallet/bitcoincashd/bitcoincashd.js +++ b/lib/plugins/wallet/bitcoincashd/bitcoincashd.js @@ -10,6 +10,8 @@ const cryptoRec = coinUtils.getCryptoCurrency('BCH') const configPath = coinUtils.configPath(cryptoRec, options.blockchainDir) const unitScale = cryptoRec.unitScale +const SUPPORTS_BATCHING = false + function rpcConfig () { try { const config = jsonRpc.parseConf(configPath) @@ -131,7 +133,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = { diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 7ccb88ea..7aaeec1f 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -9,6 +9,8 @@ const { utils: coinUtils } = require('lamassu-coins') const cryptoRec = coinUtils.getCryptoCurrency('BTC') const unitScale = cryptoRec.unitScale + +const SUPPORTS_BATCHING = true const rpcConfig = jsonRpc.rpcConfig(cryptoRec) function fetch (method, params) { @@ -172,7 +174,7 @@ function fetchRBF (txId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = { diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index 02abaaa6..56192de9 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -14,6 +14,8 @@ const NAME = 'BitGo' const SUPPORTED_COINS = ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH'] const BCH_CODES = ['BCH', 'TBCH'] +const SUPPORTS_BATCHING = false + function buildBitgo (account) { const env = account.environment === 'test' ? 'test' : 'prod' return new BitGo.BitGo({ accessToken: account.token.trim(), env, userAgent: userAgent }) @@ -159,7 +161,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = { diff --git a/lib/plugins/wallet/dashd/dashd.js b/lib/plugins/wallet/dashd/dashd.js index 78fa15c1..74217b2b 100644 --- a/lib/plugins/wallet/dashd/dashd.js +++ b/lib/plugins/wallet/dashd/dashd.js @@ -9,6 +9,8 @@ const E = require('../../../error') const cryptoRec = coinUtils.getCryptoCurrency('DASH') const unitScale = cryptoRec.unitScale + +const SUPPORTS_BATCHING = false const rpcConfig = jsonRpc.rpcConfig(cryptoRec) function fetch (method, params) { @@ -114,7 +116,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = { diff --git a/lib/plugins/wallet/geth/base.js b/lib/plugins/wallet/geth/base.js index 0f5329fc..e85ab8cc 100644 --- a/lib/plugins/wallet/geth/base.js +++ b/lib/plugins/wallet/geth/base.js @@ -17,6 +17,8 @@ const paymentPrefixPath = "m/44'/60'/0'/0'" const defaultPrefixPath = "m/44'/60'/1'/0'" let lastUsedNonces = {} +const SUPPORTS_BATCHING = false + module.exports = { NAME, balance, @@ -226,5 +228,5 @@ function newFunding (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/litecoind/litecoind.js b/lib/plugins/wallet/litecoind/litecoind.js index 25d744d0..5017252a 100644 --- a/lib/plugins/wallet/litecoind/litecoind.js +++ b/lib/plugins/wallet/litecoind/litecoind.js @@ -9,6 +9,8 @@ const E = require('../../../error') const cryptoRec = coinUtils.getCryptoCurrency('LTC') const unitScale = cryptoRec.unitScale + +const SUPPORTS_BATCHING = false const rpcConfig = jsonRpc.rpcConfig(cryptoRec) function fetch (method, params) { @@ -114,7 +116,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = { diff --git a/lib/plugins/wallet/zcashd/zcashd.js b/lib/plugins/wallet/zcashd/zcashd.js index b564449f..4544f65d 100644 --- a/lib/plugins/wallet/zcashd/zcashd.js +++ b/lib/plugins/wallet/zcashd/zcashd.js @@ -10,6 +10,8 @@ const E = require('../../../error') const cryptoRec = coinUtils.getCryptoCurrency('ZEC') const unitScale = cryptoRec.unitScale +const SUPPORTS_BATCHING = false + const rpcConfig = jsonRpc.rpcConfig(cryptoRec) function fetch (method, params) { @@ -140,7 +142,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { function supportsBatching (account, cryptoCode) { return checkCryptoCode(cryptoCode) - .then(() => _.isFunction(sendCoinsBatch)) + .then(() => SUPPORTS_BATCHING) } module.exports = {