feat: add transaction batching option to advanced wallet settings

This commit is contained in:
Sérgio Salgado 2022-02-03 17:11:48 +00:00
parent 2da14d64b3
commit 68d9d95dfa
12 changed files with 25 additions and 74 deletions

View file

@ -5,7 +5,6 @@ const E = require('../../../error')
const { utils: coinUtils } = require('lamassu-coins')
const NAME = 'FakeWallet'
const BATCHABLE_COINS = ['BTC']
const SECONDS = 1000
const PUBLISH_TIME = 3 * SECONDS
@ -111,10 +110,6 @@ function getStatus (account, tx, requested, settings, operatorId) {
return Promise.resolve({status: 'confirmed'})
}
function supportsBatching (cryptoCode) {
return Promise.resolve(_.includes(cryptoCode, BATCHABLE_COINS))
}
function checkBlockchainStatus (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => Promise.resolve('ready'))
@ -128,6 +123,5 @@ module.exports = {
newAddress,
getStatus,
newFunding,
supportsBatching,
checkBlockchainStatus
}