fix: supportsBatching function

This commit is contained in:
Sérgio Salgado 2021-06-07 18:17:06 +01:00
parent 00c38ea721
commit e6be999f02
7 changed files with 21 additions and 7 deletions

View file

@ -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 = {